Join Slack
Powered by
in <https://documentation.onesignal.com/docs/andro...
# coroutines
i
itnoles
09/01/2023, 2:07 AM
in
https://documentation.onesignal.com/docs/android-sdk-setup#2-initialization
, I am supposed to call this OneSignal.Notifications.requestPermission is the suspend method in the Android Application class. What is a proper call for it?
s
statmark56
09/01/2023, 3:08 AM
If async init is fine, probably create app-level coroutine scope and initialize it there. Otherwise, no other way I can think of but
runBlocking
🤷
Open in Slack
Previous
Next