Post

Replies

Boosts

Views

Activity

MapKit : is there any user-location restriction?
Hi, We've released a golf app available on iOS. It uses MapKit to display maps : golfcourses, shots, livecaddie, telemeter etc. Some users from South-Korea are complaining about not being able to zoom-in on areas located in their country (particularly in the New Seoul Country Club). They can have an overview of the golfcourse but it's impossible to get closer. If they try on other golfcourses located in the US or in the UK, it works perfectly (still trying from Korea). We can't replicate the issue on the Simulator. We changed the language/region + gps location to South-Korean. Our IP is located in France. Do you know if there's some restriction about map display depending on the country you are currently located?
0
0
492
Aug ’23
Calling API after region change : doesn't work every time
Hi,I'm struggling to develop a feature for an iPhone app:1. User enter/leave a region2. An endPoint is calledWhen app is relaunched by the system because of the region change, sometime the endPoint is called right away, sometimes after 2hours, sometimes never...It seems that this issue started from iOS13.I tried to stick as much as possible to Apple guidelines :API is called from background (because app is in background state when relaunched by location update):let configuration = URLSessionConfiguration.background(withIdentifier: identifier) configuration.sessionSendsLaunchEvents = true configuration.networkServiceType = .responsiveData configuration.sharedContainerIdentifier = "***.***.***" configuration.requestCachePolicy = .reloadIgnoringCacheData configuration.shouldUseExtendedBackgroundIdleMode = true let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)I download the response instead of getting it:urlSession.downloadTask(with: request)I handle events for background URLSessionapplication(_ application : UIApplication, handleEventsForBackgroundURLSession identifier : String, completionHandler : @escaping () -> ())App has got the following capability:- Background FetchIt works perfectly on the simulator.On a real device it works about 75% of time.I've also tried UIApplication.beginBackgroundTask but with no success.So, my questions are:- how can I have a 100% success endPoint call when region is changed (and network is available)?- Am I using the right methods? Do I missed something?- Is there a way to test it with the debugger? The issue I'm experiencing is only when app is closed and a region change event is triggered. The solution I found is to develop a small logging library that writes each events locally, so I can read them when I relaunch the app manually. It's not really handy to debug.Thanks for your answers 🙂
3
0
1.1k
Mar ’20