mirzemehdi / KMPNotifier

Kotlin Multiplatform Push Notification Library targetting android and iOS
http://mirzemehdi.com/KMPNotifier/
Apache License 2.0
172 stars 10 forks source link

onNewToken is not called on iOS Side sometimes #3

Open mirzemehdi opened 7 months ago

mirzemehdi commented 7 months ago

Can't reproduce why this happens. But if this occurs as a workaround for now, you can call val firebasePushToken = NotifierManager.getPushNotifier().getToken() in coroutine scope, and this will trigger onNewToken

Sabriel1984 commented 3 months ago

I've never received onNewToken on iOS, even after fresh install, but I assume that it could be Firebase configuration problem - like connecting Firebase with APNS certificate

mirzemehdi commented 3 months ago

If you tried above workaround solution, maybe you didn't enable Push Notifications in XCode