-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Uncaught Exception: Context.startForegroundService() did not then call Service.startForeground() #810
Comments
It’s a well know issue reported by many Android developers. See the CHANGELOG for 3.2.0. Also see this: https://issuetracker.google.com/issues/76112072 No, I don’t know any way around it yet, |
See this comment
|
Ok, thank you |
Is this being actively worked on for a future release? We're seeing the same issue, didn't know if there was a way we could help. |
@andrewtelkamp Yes. Search the CHANGELOG for " |
That's interesting to me - good observation. If SharedPreference loading on boot takes too long this may be a common issue as I'm aware of react-native-permissions 2.0 pre-release using a similar solution to tackle a thorny issue of "what request / response state am I in?" for iOS permissions (not sure if it is used on android code as well) and I'm contemplating a SharedPreference implementation for unique ids in react-native-device-info. I hadn't thought of it as a performance issue, so that's an interesting dimension since unique ids from device info are one the things you'd really want in you location points... |
There's nothing wrong with using |
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. You may also mark this issue as a "discussion" and I will leave this open. |
I'm seeing much more robust performance with latest version |
@gtaylor44 Correct. All the plugin's source-code has been cleaned of faults. Any other instances of this are due to your own code / plugins. See #976 and enable |
Your Environment
react-native -v
): 0.59.9Expected Behavior
Do not see errors like this
Actual Behavior
have a lot of errors with this text. Some examples:
Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{c870e9e u0 com.yandex.courier/com.transistorsoft.locationmanager.service.HeartbeatService}
Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{44a549e u0 com.yandex.courier/com.transistorsoft.locationmanager.service.GeofencingService}
Context.startForegroundService() did not then call Service.startForeground()
Context
the device on which it most often occurs - Huawei Y6 Prime
but have same issue on another devices like samsung, sony, xiaomi...
It is also known that the problem can occur both in the background and foreground
Debug logs
Logs
[649697145496 (1).txt](https://github.com/transistorsoft/react-native-background-geolocation/files/3534158/649697145496.1.txt)There is logs inside file. You could find error by search '‼️ Uncaught Exception: Context.startForegroundService() did not then call Service.startForeground()'
The text was updated successfully, but these errors were encountered: