mirzemehdi / KMPNotifier

Kotlin Multiplatform Push Notification Library targetting android, iOS, Desktop and Web (JS and Wasm)
http://mirzemehdi.com/KMPNotifier/
Apache License 2.0
340 stars 19 forks source link

How to implement push notification by just firebase FCM token in iOS? #90

Open alexgallardo11 opened 10 hours ago

alexgallardo11 commented 10 hours ago

How to implement push notification by just firebase FCM token?

in the readme show this implementation: func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { Messaging.messaging().apnsToken = deviceToken }

but i want to get the token in the common code with this function: NotifierManager.getPushNotifier().getToken()

In android is working and i'm reciving notifications, but in ios is not working.

How can i fix it?