Camera show picture on emulator but not on device


I’m using Genymotion emulator and > ionic run android and here is what i get:

But when i try > ionic build android and install it on my device, this is what i get:

A blank square.

Here is my code:

<button class="button button-block button-royal" ng-click="escolhefotoperfil()">Escolha uma foto para o perfil!</button> <img id="fotoperfil" ng-show="fotoperfil !== undefined" ng-src="{{fotoperfil}}"></img> <br /><br /> <button class="button button-block button-calm" ng-click="salvarUsuario(nomeperfil, snperfil, fotoperfil)">Salvar</button>

$scope.escolhefotoperfil = function(){ var options = { quality: 65, destinationType: Camera.DestinationType.DATA_URL, sourceType: Camera.PictureSourceType.PHOTOLIBRARY, allowEdit: false, encodingType: Camera.EncodingType.JPEG, targetWidth: 300, targetHeight: 300, saveToPhotoAlbum: false }; $cordovaCamera.getPicture(options).then(function (imageData) { $scope.fotoperfil = "data:image/jpeg;base64," + imageData; }, function (err) { $scope.errofoto = "Erro ao escolher foto: " + err.message; }); };

Can someone shine me a light?