Tom6106181
Posts: 0
Joined: Fri Aug 02, 2013 12:39 pm

Phonegap dialog plugin problem on Ios

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...!?!

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Phonegap dialog plugin problem on Ios

Hi Tom,

Have you added iOS notifications initialization to your project codeconfig.xml/code file?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Phonegap dialog plugin problem on Ios

Hi Tom,

Please try changing function as it's recommended in console. This should help.

Tom6106181
Posts: 0
Joined: Fri Aug 02, 2013 12:39 pm

Phonegap dialog plugin problem on Ios

This will be modifying Appery included phonegap plugin, as I understand it, trough source code editing. Please have your developers look at it.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Phonegap dialog plugin problem on Ios

Hello!

The problem is that to add plugin for iOS project you have to add corresponding files to CordovaLibPlugins folder. Unfortunately currently files from that folder are not included to project when you export .ipa file. So the only one way to add PhoneGap plugin for iOS is to do that manually in xCode. We are sorry for inconvenience, we are working on this feature.

Return to “Issues”