Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Background services for GPS no longer works - even in sample code
Started by MBD Nov 19 2015 03:54 PM

1 reply to this topic
gps background services blue bar
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

MBD

[GLOBAL: userInfoPane.html]
MBD
  • Contributor

  • 386 posts
  • Corona SDK

I have had an app in the iOS and Android market for a long time, background GPS services worked fine (unsupported by Corona, I know) until now.

 

Updating the app this week, realized the background services no longer work when the app is put into the background. (no blue bar)

 

I've tried about everything I could find including NSLocationWhenInUseUsageDescription in the build settings.

 

Then I realized - not even the sample code works shipped in the SDK.

 

Anyone else running into this? I've tried building with 2763, 2731, and 2707

 

This is for iOS 9.1

 



[TOPIC: post.html]
#2

MBD

[GLOBAL: userInfoPane.html]
MBD
  • Contributor

  • 386 posts
  • Corona SDK

The more I investigate this I really think it started with iOS 9.

 

Corona gang - can you take a look at this and see about implementing into a daily build?

 

http://stackoverflow.com/questions/32758125/ios9-not-tracking-location-while-in-background

if ([self.locationManager respondsToSelector:@selector(setAllowsBackgroundLocationUpdates:)]) {
[self.locationManager setAllowsBackgroundLocationUpdates:YES];
}



[topic_controls]
[/topic_controls]