alexander-fire
alexander-fire

Reputation: 1082

Cordova geolocation.getCurrentPosition throws timeout on iPad

I am using the phonegap plugin geolocation to get the current position.

I have tested the function on an Android Tablet and it works.

If i try the application on my iPad, I always get errorcode = 3 (Timeout).

Basically the gps works on the iPad. (I tested with a GPS-Test app.)

navigator.geolocation.getCurrentPosition(succGPS, errGPS, { enableHighAccuracy: false, timeout: 30000, maximumAge: 600000 });

--> Result is the function errGPS with error.code = 3

Upvotes: 1

Views: 673

Answers (2)

alexander-fire
alexander-fire

Reputation: 1082

I found the bug.

It was associated with ios8.

In ios 8, you have to update the plugin. I have used 0.3.10.

After the update to 0.3.13 it works. :)

Upvotes: 2

Vishnuraj
Vishnuraj

Reputation: 71

check whether your application have permission to access geo loc of device. It will ask only for the first time you open it in a ios device. You can change it in settings.

Upvotes: 0

Related Questions