Hi.
I have swapped out all my regular alerts with the phonegap plugin dialogs.
This is working flawlessly in Android, but nothing display in Ios.
I have tried googling for several hours now trying to figure out why the dialog/notification do not work in Ios, but in Android. Looks like people elsewhere is having the same problem.
example used for no geolocation data available:
code
if(localStorage.getItem('userLatitude') === undefined localStorage.getItem('userLatitude') === '' localStorage.getItem('userLatitude') === null localStorage.getItem('userLongitude') === undefined localStorage.getItem('userLongitude') === '' || localStorage.getItem('userLongitude') === null){
navigator.notification.alert(
'There are some problems retrieving your current location. Please make sure you are allowing the app access to your location data.',
'', // callback
'Device location problem', // title
'Ok'
);
}
/code
Any suggestions?
EDIT (after even more troubleshooting):
from Xcode console:
code
2014-04-27 17:18:08.543 MCevent[5556:70b] The old format of this exec call has been removed (deprecated since 2.1). Change to: cordova.exec(null, null, "", "",[null,"Notification","alert",["There are some problems retrieving your current location. Please make sure you are allowing the app access to your location data before proceeding.","Device location problem","Ok"]]);
/code
Looks like a plugin problem yes...!?!