This is a migrated thread and some comments may be shown as answers.

Camera restarts App

2 Answers 52 Views
AppBuilder companion app
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
domiSchenk
Top achievements
Rank 1
domiSchenk asked on 07 Jul 2014, 08:06 AM
I've got a strange behaviour with my app.

First some infos:
I created a clean App (AppBuilder) used Ionic framework.
Now i've implemented a TakePicture method.
This work fine, except the app restarts after taking a pic and clicking ok.

code: 
$scope.GetPicture = function() {
    navigator.camera.getPicture($scope.onCaptureSuccess, $scope.onCaptureError, {
        quality: 75,
        destinationType: Camera.DestinationType.DATA_URL,
        sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
        allowEdit: true,
        targetWidth: 165,
        targetHeight: 165
    });
     
}
 
$scope.onCaptureSuccess = function(imageData) {
    var smallImage = document.getElementById('personImage');
    smallImage.style.display = 'block';
    smallImage.src = "data:image/jpeg;base64," + imageData[0];
};
 
$scope.onCaptureError = function(e) {
    alert(e);
};

As far i never had this problem with Kendo UI Mobile.

Now the strange thing i don't have the problem in companion app.

Is the companion app build with special settings that a normal app is not?
do i have to change a setting?

someone has the same problem?

2 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 09 Jul 2014, 03:40 PM
Hello Dominik,

Thank you for reporting this.

There is a known issue with the LiveSync for iOS, where the app gets refreshed after the hiding of a modal window. I believe this is what you are experiencing. The good news is that our development team is currently working on a fix, which should be available soon. However, until then I can only suggest you to build and deploy your applications with disabled LiveSync option.

I hope this helps.

Regards,
Kaloyan
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
0
domiSchenk
Top achievements
Rank 1
answered on 09 Jul 2014, 08:22 PM
ah i see thank you very much for the clarification!
Tags
AppBuilder companion app
Asked by
domiSchenk
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
domiSchenk
Top achievements
Rank 1
Share this question
or