Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

How to (re-)enable location service with iOS 8.x?

$
0
0

Hi all

I have installed XF 1.3-pre-4 with iOS 7.x.
After update to iOS 8.1.2 on my iPhone 5, the location-service don’t have worked anymore.
In then have posted the problem and received an answer from @bosco in this thread:

forums.xamarin.com/discussion/comment/95427#Comment_95427

First, once again thanks to @bosco.

Here is the conclusion (full solution):

Open the info.plist-file in the iOS-project with editor (as the option's can not be edited in VS2013).
Note: Use an editor like EditPad light because CR/LF’s.

Add the following entry’s (according suggestion from bosco):

<key>NSLocationWhenInUseUsageDescription</key>
<string>***The message you want to appear when iOS prompts the user to allow their location to be tracked***</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>***The message you want to appear when iOS prompts the user to allow their location to be tracked***</string>

Clean and rebuild app.
On the iPhone change settings:
- In German: Einstellungen - Datenschutz - Ortungsdienste - then scroll to the App-name, select it and set "Immer"
- In English (free translated): Settings - Data Security - Location Service - then scroll to the App-name, select it and set "always"
=> Before I have added the entries, I already have selected "always", but the setting was not stored
=> Now, I also can see my text (from the edited info.plist-file) and the setting IS stored


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>