Camera restarts App

3 posts, 0 answers
  1. domiSchenk
    domiSchenk avatar
    55 posts
    Member since:
    Mar 2013

    Posted 07 Jul 2014 Link to this post

    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. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 09 Jul 2014 Link to this post

    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!

     
  3. domiSchenk
    domiSchenk avatar
    55 posts
    Member since:
    Mar 2013

    Posted 09 Jul 2014 in reply to Kaloyan Link to this post

    ah i see thank you very much for the clarification!
Back to Top