Possible difference between "Safari on iPad" and "Safari on iPhone" on JavaScript -


i have project involving google maps api , javascript codes. page build upon jquery mobile. have web page tested on chrome, firefox, opera , ie on desktop, , on various mobile phones well.

it doesn't work on iphone (4, nor 5). mean, it's under android, wp8, chrome iphone simulator, , working on ipad (air, if matters).

it appears google maps api not loaded @ all. should initialized after page load, , show map inside page. there's nothing. there's no alert querying user's location, happen when using ipad.

the safari on iphone same version on ipad, os 7.0.4, apple webkit 537.51.1, safari 9537.53. devices connected same wifi network. due lack of mac can't use remote debugging function right now.

any brief ideas what's wrong application? suspect it's inside javascript wrong.

thanks.

i've found problem , solved it.

it because location service disabled safari (by default), on iphone. it's enabled on ipad (not sure if it's default) different reaction location service api.

i have put alert message ios users when detecting location service disabled. after it's enabled in privacy settings on device, application works on devices.

the patch code here need.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -