I learned today of an issue with Core Location in iOS 8: a new key or keys must be added to Info.plist to get Core Location to work. More information is available on these pages:
- iphone - iOS 8 : Location Services not working - Stack Overflow
- rdar://17465666: Apps built for iOS 7 don't ask for location permission
- fixes #481: update CL tracking API for iOS 8+ · 8d6b14a · mapbox/mapbox-ios-sdk · GitHub
I'll note that I have not tested this myself, nor thoroughly investigated the issue. This may be nothing, but I'm curious as to whether ArcGIS developers or users of the SDK have tested their apps with iOS 8.
We've been testing the Runtime SDK for iOS with iOS 8 Beta 5, and so far we've uncovered only a few issues mostly related to popup display on iPad in a form sheet or a page sheet presentation style. We've also run into the location display issues you report, caused by the new authorization model for using location in apps.
Hi Divesh Goyal.
Now that Apple released the ios8 gm sdks, I´m still facing regular crashes in runtime sdk for ios with the following trace: gist:9f99e5f90256ab6e4c51
Kristopher,
Is your crash specific to iOS 8, or does it occur even on previous version iOS 7?
From the stack trace, it looks like the WMTS layer is choking on something. Can you share the service you're using so we can try it out?
Hi Divesh, I´ve updated the gist with more info for repro. Thanks!
Has this been this been fixed in the newest Runtime SDK? I'm currently having problems with Core Location in iOS 8 in my app. I've added the keys suggested and it still wont work.
Afaik, the issue I´ve seen is not related to location.
Hi again. Found another issue, also on device this time. Pushed a trace in the gist.
Hi Kristoffer,
is this a secured layer?
I'm trying to run some tests and I get an 400 error - bad request with the WMTS URL you provided.
Hi Divesh,
I'm having the same location service issue after migrating to Xcode 6.1 iOS 8.1. I'm using ArcGIS Runtime SDK for iOS 10.2.4. Any suggestions please?
Thanks,
Shimin
Shimin,
Have you modified your app's info.plist file to contain the NSLocationWhenInUseUsageDescription key as described here - Displaying the location on a map ?
Thanks Divesh. It worked after adding the key 'NSLocationWhenInUseUsageDescription' in the info.plist. Tried the 'NSLocationUsageDescription' before posting the question but it didn't work. Didn't know you have to manually add the key 'NSLocationWhenInUseUsageDescription'. Cheers, Shimin
Hi David Lednik. This should not be a secured layer; the following should work:
AGSWMTSLayer.wmtsLayerWithUrl(NSURL(string:"http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts"), title: "topo2", imageFormat: AGSImageFormat.PNG24, tileMatrixSet: "EPSG:32633")
But, upgrading to 10.2.4, I believe the issues I saw no longer occur. If i do find any more though, I´d be happy to share my project. If you have a BitBucket account, I can share it if the issue reoccurs.
Thanks for looking into this!
Kristoffer
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.