Page 1 of 1

navigator.notification is not woking

Posted: Sat Mar 08, 2014 6:18 am
by GodSpeed JP1

I want use navigator.notification to alert some message.
But It is not working.Debuger says navigator.notification is undefinded.
When I click button ,I run javascript :
navigator.notification.alert("message", null, "title");
Anything wrong?


navigator.notification is not woking

Posted: Sat Mar 08, 2014 7:37 am
by Illya Stepanov

Hello,

prenotification.alert/pre


navigator.notification is not woking

Posted: Sat Mar 08, 2014 8:08 am
by GodSpeed JP1

Thank you Illya.It works on my IOS Tester well.:-)


navigator.notification is not woking

Posted: Wed May 07, 2014 3:50 am
by Alex GG

Hello!
I have this working fine both on android and ios, when there's no internet connection:
navigator.notification.confirm

but if I put this code on fail event of geolocation, to advice the user to turn locations services, it doesnt show the popup on ios, (7.1), it works fine on android.

If I use alert('some message');
it works fine on both.

Should this code work on geolocation fail event?

Regards


navigator.notification is not woking

Posted: Wed May 07, 2014 7:16 pm
by Kateryna Grynko

Hi Alex,

This code should work for all events. Try adding another action on this event please. For example, change label text to make sure the event fires:preApperyio("labelName").text("service failed");/pre


navigator.notification is not woking

Posted: Wed May 07, 2014 7:53 pm
by Alex GG

Thanks! I end up using your code to advice user to turn locations services on.