Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

Problem with Phonegap Confirmation

Hello,
I try to use some PhoneGap features regarding alerts and confirmations. While I was able to make alerts work properly, I can't make confirmations work using 'navigator.notification.confirm'.

This is what I have inside 'Device ready' event:

function showConfirm() {
navigator.notification.confirm('Lista artykułów zostanie wyczyszczona.',console.log('Hello Appery'),'Wyczyść','TAK,NIE');
}

This is what is under the button that needs confirmation (click event):

showConfirm();
return false;

Nothing happens after clicking this button on mobile device. On Chrome console I get this error:

Uncaught ReferenceError: showConfirm is not defined

but I don't think it is relevant since it uses 'Device ready' event to fire showConfirm() function.

Tested on Appery Tester on iPhone 4s,
App called '3mamcukier', already shared with Appery support.

My built-in libraries are as follows:
jQuery (1.8.2)
jQuery Mobile (1.3.2)
PhoneGap (3.0.0)

Can you please help me in making this feature work?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Problem with Phonegap Confirmation

To start, try running the confirmation API on a simple click event -- to see if that works.

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

Problem with Phonegap Confirmation

Thanks Max. I should have tried this before asking...
Yes, this works when I simply put the confirmation API under click event.
Happy Holidays to you and the rest of Appery team.

Return to “Issues”