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

[iOS] App crashes if a push notification is sent when the app is terminated #87

Closed vyronarediano closed 1 week ago

vyronarediano commented 3 weeks ago

Hi mate, please help

KMPNotifier and Kotlin version: kmpnotifier version: 1.2.0-alpha02 kotlin version: 1.9.21 koin version: 3.6.0-Beta5

Describe the bug In iOS, it works well in the foreground and background. However, the app crashes if a push notification is sent when the app is terminated.

In which platform bug occurs? iOS

To Reproduce Steps to reproduce the bug:

  1. Login into the app
  2. Terminate/kill the app
  3. Send push notification

Expected behavior It should not crash

vyronarediano commented 3 weeks ago

Found this error Crash Log Details in xcode:

image

vyronarediano commented 3 weeks ago

image

vyronarediano commented 1 week ago

fix: just send 1 firebase setting and it converts to whateer device on the firebase end, rather then sending gcm and aps