Join Slack
Powered by
in <https://documentation.onesignal.com/docs/andro...
# android
i
itnoles
08/30/2023, 4:02 AM
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
Colton Idle
08/30/2023, 12:59 PM
Looks like it has to be in the Application class. So... effectively GlobalScope.launch?
i
itnoles
08/30/2023, 2:15 PM
Why I am getting not Kotlin tag here?
c
Colton Idle
08/30/2023, 8:23 PM
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
Open in Slack
Previous
Next