michalchudziak / react-native-geolocation

Geolocation APIs for React Native
MIT License
1.28k stars 220 forks source link

Revision to work in Headless JS #247

Closed valery-lavrik closed 10 months ago

valery-lavrik commented 1 year ago

The problem is that the definition of coordinates does not work in Headless mode because currentActivity == null I propose to change the logic a little, and make sure that in this case the plugin still tries to determine the coordinates. I give an example on the screenshot

image

michalchudziak commented 1 year ago

Thanks! I see that there is some PR hanging. I need to review it and test it. I definitely want to get this feature merged.

michalchudziak commented 10 months ago

Shipped in version 3.1.0