in <https://documentation.onesignal.com/docs/andro...
# android
i
in https://documentation.onesignal.com/docs/android-sdk-setup#2-initialization, OneSignal.Notifications.requestPermission is the suspend method. what is a proper call for it?
not kotlin but kotlin colored 1
c
Looks like it has to be in the Application class. So... effectively GlobalScope.launch?
i
Why I am getting not Kotlin tag here?
c
idk, but i would maybe ask in #coroutines what is a proper scope for you to use to launch. seems like GS or creating your own scope (that you manually clean up) could work. Like this: https://github.com/firebase/firebase-android-sdk/issues/3851#issuecomment-1172482071