Hi all, I'd love a bit of help:
I need to save some data into App.getApp.setProperty(...) at the app startup, and it is only possible to save data from an app, not from a background service.
However, if I put this code into myApp.initialize() or myApp.onStart(), these methods get called when the background service initializes as well - and calling setProperty will lead to a crash of a background service.
What is a correct check for 'Am I currently in an app or in a background service'?
Thanks!