Jul 30, 2025 Replies: 3 I recommend adding these two snippets to avoid crashes that happen when the app is somehow started while the screen is turned off: Add to manifest editor: Code: Copy SetServiceAttribute(Starter, android:foregroundServiceType, shortService) Add to starter service: Code: Copy Private Sub Service_Timeout(Params As Map) Service.StopForeground(51042) 'this is the id of the automatic foreground notification End Sub It will probably be added to the templates in the future. Click to expand...
I recommend adding these two snippets to avoid crashes that happen when the app is somehow started while the screen is turned off: Add to manifest editor: Code: Copy SetServiceAttribute(Starter, android:foregroundServiceType, shortService) Add to starter service: Code: Copy Private Sub Service_Timeout(Params As Map) Service.StopForeground(51042) 'this is the id of the automatic foreground notification End Sub It will probably be added to the templates in the future.
Magma Expert Licensed User Longtime User Jul 30, 2025 #2 Perfect this is what I need for my shortservice... to stop it right...
Magma Expert Licensed User Longtime User Sep 8, 2025 #3 Well it seems having problem only at specific version of Android... the problem continues...
Erel B4X founder Staff member Licensed User Longtime User Sep 10, 2025 #4 Better to start a new thread and provide more information, including all services in your app.