Clawg | 24 Apr 02:44 2013
Picon

Re: notification prompt not working after upgrade for iOS

Solved the issue Shazron.


My path to CordovaLib.xcodeproj was not updated when I updated the project so it was pointing to an older version, in a folder elsewhere.

Thanks for your help

On Wednesday, 24 April 2013 08:53:41 UTC+12, Shazron Abdullah wrote:
cordova_plugins.json is harmless, it will try to load it if its there. This is for a future feature.


On Tue, Apr 23, 2013 at 1:48 PM, Clawg <claw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Thanks Shazron, 

At least i know the issue sits with me.   Could it be the cordova_plugins.json 404 (Not Found) that is causing this, I am not even sure what this is for.

Cheers


On Wednesday, 24 April 2013 08:43:38 UTC+12, Shazron Abdullah wrote:
Just tested with a 2.6.0 new project, both notification prompt and confirm work (using your example code, and docs.phonegap.com example code). Try that to isolate your problem.




On Tue, Apr 23, 2013 at 1:34 PM, Clawg <claw... <at> gmail.com> wrote:

Since upgrading to phonegap 2.6 from 2.4 the method navigator.notification.prompt has stopped working. Xcode spits out this error:

ERROR: Method 'prompt:' not defined in Plugin 'Notification' -[CDVCommandQueue executePending] [Line 103] FAILED pluginJSON = ["Notification1135621647","Notification","prompt",["Are you sure you want to permanently delete this code?","Delete Tracking Code FFHFDCVHHGG",["Delete","Cancel"]]]

This is how I set up the call to prompt, its pretty much straight out of the PhoneGap documentation. The event is triggered from a click event via backbone.

navigator.notification.prompt( 'Are you sure you want to permanently delete this code?', // message onPrompt, // callback to invoke with index of button pressed 'Delete Tracking Code ' + self2.options.parentModel.toJSON().track_code.toUpperCase(), // title ['Delete','Cancel'] // buttonLabels ); function onPrompt(button) { if (button === 1) { self2.options.parentModel.clear(); // Remove the item from local storage nzp.router.navigate('tracking', {trigger: true}); // Navigate to the tracking page } else { return false; } }

The confrim method does not work either, however alert does.

I have noticed that when I view the site in a browser I am getting a new error message too which says cordova_plugins.json 404 (Not Found). I am not sure what this is for or if its related to my issue.

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org

To unsubscribe from this group, send email to
phonegap+u... <at> googlegroups.com

For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u... <at> googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+u... <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u... <at> googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Gmane