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

Weird notices in output window while debugging ios 7.1 application and using camera to capture photos.

1 Answer 23 Views
AppBuilder extension for Visual Studio
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dave
Top achievements
Rank 1
Dave asked on 23 Apr 2014, 08:43 PM
User AppBuilder extension for Visual Studio 2013
Provision ios Build
iPhone 5 ios 7.1
Jquery Mobile: 1.4.2
Jquery: 1.11.0

I'm seeing weird comments & behavior in the output log and when taking photos.  I have a modal popup with two buttons that set the SourceType of the
navigator.camera.getPicture method to either navigator.camera.PictureSourceType.CAMERA or navigator.camera.PictureSourceType.PHOTOLIBRARY i.e.


on click calls:
navigator.camera.getPicture(onSuccessUri,onFail, { quality: 50,sourceType: sourceType ,destinationType:destinationType.FILE_URI });

The onSuccessUri(images) method gets called and I get an output of :
file:///var/mobile/Applications/80207206-B13F-4D31-B249-1B729ED02FB7/tmp/cdv_photo_002.jpg

Then I call window.resolveLocalFileSystemURI(imageUri, gotImageURI,
onFail);
  
function onSuccessUri(imageUri) {   
    window.resolveLocalFileSystemURI(imageUri, gotImageURI, onFail);
}

The method gotImageURI which should get the fileEntry object but doesn't get called.  Thinks go wrong from this point because nothing works until I close popup and go to another page.  -- odd

Here are some of the output entries that seem odd:

When I cancel out of taking a photo I see this message:
The old format of this exec call has been removed (deprecated since 2.1). Change to: cordova.exec(null, null, "","Error",[null,"Notification","alert",["no
image selected","OK","OK"]]);

This output too:
notify name "com.telerik.app.refreshWebView" has been registered 20 times - this may be a leak

I’ve seen this message with up to 80 as noted registered times.

Thanks, Dave




1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 28 Apr 2014, 12:58 PM
Hello Dave,

It is unfortunate that you have come across such issues using AppBuilder.

Is it possible for you to send us the actual project where these reproduce or even better, a sample project where the issues are isolated? This will help us investigate what could be causing the matters and so, provide possible solutions or workarounds. Please, if you decide to share your work with us, do it in a private support ticket, as the forums are not confidential.

Further, you can also debug your code and check if there aren't any errors in the console output.

I am looking forward to your reply.

Regards,
Kaloyan
Telerik
 

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

 
Tags
AppBuilder extension for Visual Studio
Asked by
Dave
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or