Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

The phone call button doesn't work.

It does not work on IPhone. It works on Android.
Yes the solution you provided works for the Call Function but not for Google maps. I need to get window.open('geo:0,0?q=' + Appery('Address').text(), '_system'); to work on Iphone. Invoking the jscript does nothing. What would the correct syntax be for it to work on an IPhone.

And why did this change as it always worked perfectly before. It is so frustrating.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

The phone call button doesn't work.

Any news here please?

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

The phone call button doesn't work.

We need to check this, Deon. On what iOS version it works for you before that?

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

The phone call button doesn't work.

Hi Illya. That is not relevant. Right now it is not working on IPHONE 6 with whatever version 8/9.

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

The phone call button doesn't work.

Deon - I have checked this on Nexus 5 (Android 5.0) and this works, but I'm not sure if it is possible to open Google Maps on iOS device this way. It doesn't works for me on any iOS 7.1 and 8.4

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

The phone call button doesn't work.

So how do you do you do native navigation on the IPHONE as with Android?

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

The phone call button doesn't work.

Hi Deon -

For iOS devices you will need to use another beginning in the string:

precodewindow.open('maps:0,0?q=' + newstr, '_system');/code/pre

but possibly you should try to pass values of longitude and latitude

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

The phone call button doesn't work.

Thank you,

Will this work for Android as well? If not, how do I detect whether a phone is Apple or Android within Java?

Thank you

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

The phone call button doesn't work.

It doesn't work for Android. You can detect device's platform like it is shown here: http://docs.phonegap.com/en/edge/cord...

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

The phone call button doesn't work.

Hi

Its not working.

This is my code. Please can you see if I have done anything wrong, please.

var devicePlatform = device.platform;

if (devicePlatform === 'IOS') {
var address = Apperyio("LatLon").text().replace(/[ \n\r]/gi, "");
window.open('maps:0,0?q=' + address, 'system');
}
else {
var address = Apperyio("LatLon").text().replace(/[ \n\r]/gi, "");
window.open('geo:0,0?q=' + address, 'system');
}

Thank you

Return to “Issues”