Page 4 of 5

The phone call button doesn't work.

Posted: Sun Sep 27, 2015 11:06 pm
by Deon

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.


The phone call button doesn't work.

Posted: Tue Sep 29, 2015 6:44 pm
by Deon

Any news here please?


The phone call button doesn't work.

Posted: Tue Sep 29, 2015 9:16 pm
by Illya Stepanov

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


The phone call button doesn't work.

Posted: Wed Sep 30, 2015 9:43 am
by Deon

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


The phone call button doesn't work.

Posted: Wed Sep 30, 2015 6:31 pm
by Illya Stepanov

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


The phone call button doesn't work.

Posted: Thu Oct 01, 2015 7:50 am
by Deon

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


The phone call button doesn't work.

Posted: Mon Oct 05, 2015 4:35 pm
by Illya Stepanov

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


The phone call button doesn't work.

Posted: Tue Oct 06, 2015 10:11 am
by Deon

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


The phone call button doesn't work.

Posted: Tue Oct 06, 2015 8:30 pm
by Serhii Kulibaba

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


The phone call button doesn't work.

Posted: Mon Oct 12, 2015 7:59 pm
by Deon

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