React-native-background-geolocation: Documentation of ACTIVITY_PROVIDER wrong for IOS. Cant work in background.

Created on 29 Aug 2018  Â·  9Comments  Â·  Source: mauron85/react-native-background-geolocation

As motion activity events are not triggered in the background,
The library will not start tracking location again when there's suitable motion.

The docs say "This one is best to use as foreground location provider (but works in background as well)" - this is misleading.

bug enhancement good first issue help wanted stale

Most helpful comment

What locationProvider should we use for iOS 12.1.2?
Distance filter or Raw ? Which work in background as well.

All 9 comments

This is true. It's misleading. Warnings should be added.

Do we have any clues about the problem? Can I help you with that?

@ccoeder there is not much we can do here (in terms of code). Only documentation needs to be updated, to state this provider has its limitations. Maybe in the future we can add fallback to geofencing when in background.

Is there no chance of using the ACTIVITY_PROVIDER? I was hoping to use this to ascertain the user's travel type to enhance the data we collect. Its a big loss to not have this :( Using the raw_provider now. ACTIVITY_PROVIDER simply does not work in the background for me on iOS

It’s limitation of ios. Unfortunatelly.

On Wed, 21 Nov 2018 at 17:15, Anthony Humphreys notifications@github.com
wrote:

Is there no chance of using the ACTIVITY_PROVIDER? I was hoping to use
this to ascertain the user's travel type to enhance the data we collect.
Its a big loss to not have this :( Using the raw_provider now.
ACTIVITY_PROVIDER simply does not work in the background for me on iOS

—
You are receiving this because you commented.

Reply to this email directly, view it on GitHub
https://github.com/mauron85/react-native-background-geolocation/issues/275#issuecomment-440723433,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAV8Gpsqq2G4Gtrq4RBuGM73rRgL7erdks5uxXwUgaJpZM4WRkau
.

Damn. Not for this issue really, but reckon i could find the activity type use BackgroundTask to call the activity api?

What locationProvider should we use for iOS 12.1.2?
Distance filter or Raw ? Which work in background as well.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn't be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it's important. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings