transistorsoft / react-native-background-geolocation

Sophisticated, battery-conscious background-geolocation with motion-detection
http://shop.transistorsoft.com/pages/react-native-background-geolocation
MIT License
2.64k stars 425 forks source link

iOS BackgroundGeoLocation.onLocation not working when app is closed #2190

Open Sameer98700 opened 1 day ago

Sameer98700 commented 1 day ago

Your Environment

Expected Behavior

Actual Behavior

Steps to Reproduce

1. 2. 3. 4.

Context

I updated to the latest version 4.17.4 in Android it is working fine but in ios BackgroundGeoLocation.onLocation function does not fire when the app is closed. previously version 4.1.1 BackgroundGeoLocation.onLocation worked in ios

Note -- I added in the index.js file

Debug logs

Logs ``` PASTE_YOUR_LOGS_HERE ```
christocracy commented 21 hours ago

Are you testing in the iOS simulator with “Freeway Drive”?

Sameer98700 commented 21 hours ago

Yess

On Sat, 26 Oct 2024 at 8:11 PM, Chris Scott @.***> wrote:

Are you testing in the iOS simulator with “Freeway Drive”?

— Reply to this email directly, view it on GitHub https://github.com/transistorsoft/react-native-background-geolocation/issues/2190#issuecomment-2439605879, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3DEOKQBLNVWVEI7IOQQAT3Z5OS2HAVCNFSM6AAAAABQUS43YKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZGYYDKOBXHE . You are receiving this because you authored the thread.Message ID: <transistorsoft/react-native-background-geolocation/issues/2190/2439605879 @github.com>

christocracy commented 21 hours ago

And you’re saying you don’t see debug notifications appear after terminating the app while simulating location with “Freeway Drive”?

Sameer98700 commented 21 hours ago

Yes, previously it is working fine in 4.1.1

On Sat, 26 Oct 2024 at 8:39 PM, Chris Scott @.***> wrote:

And you’re saying you don’t see debug notifications appear after terminating the app while simulating location with “Freeway Drive”?

— Reply to this email directly, view it on GitHub https://github.com/transistorsoft/react-native-background-geolocation/issues/2190#issuecomment-2439615736, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3DEOKQN2SKVOHPDF4W44YLZ5OWD7AVCNFSM6AAAAABQUS43YKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZGYYTKNZTGY . You are receiving this because you authored the thread.Message ID: <transistorsoft/react-native-background-geolocation/issues/2190/2439615736 @github.com>

christocracy commented 21 hours ago

Show me logs of your app launching in XCode.