mauron85 / react-native-background-geolocation

Background and foreground geolocation plugin for React Native. Tracks user when app is running in background.
Apache License 2.0
1.33k stars 561 forks source link

Authorization method not triggering on Android #497

Closed enesozturk closed 3 years ago

enesozturk commented 4 years ago

Your Environment

Context

I am trying to handle authorization change on Android. Using on('authorization') as shown in document. Works fine in iOS but not triggering after giving permission to locations. How can I solve it?

Expected Behavior

When first open the app, I ask for location permission to show map and get current location.

Actual Behavior

I cannot catch if user give permission or not because authorization method not triggering as expected.

Possible Fix

Steps to Reproduce

1. 2. 3. 4.

Context

Debug logs

stale[bot] commented 3 years ago

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.