OneSignal / OneSignal-Flutter-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
https://www.onesignal.com
Other
625 stars 214 forks source link

[Bug]: iOS app crashes when opening a push notification (when using firebase auth) #762

Closed Toolenaar closed 1 year ago

Toolenaar commented 1 year ago

What happened?

When opening the app from a push notification on iOS the app crashes. When exploring the logs the crash seems to happen somewhere in the FirebaseAuth plugin. When the app is open in the background it seems to work fine, this only happens when the app is closed.

Steps to reproduce?

1. Create an app that also uses firebaseAuth
2. Send a push
3. Open the app from a push notification (app needs to be closed)

What did you expect to happen?

I expected the app to open instead of crashing directly.

OneSignal Flutter SDK version

onesignal_flutter: 5.0.3 firebase_core: "^2.17.0" firebase_auth: "^4.10.1"

Which platform(s) are affected?

Relevant log output

Screenshot 2023-10-09 at 15 39 22

Code of Conduct

MuhamadHaydar commented 1 year ago

I got the same issue with one signal in Flutter, it works in all cases except when the application is closed, nevertheless, the notification clicks will not be counted,

App Info: onesignal_flutter: ^5.0.2 firebase_auth: ^4.6.3 firebase_core: ^2.14.0

It will crash directly when the notification clicked.

Toolenaar commented 1 year ago

Seems to be related with this => https://github.com/firebase/flutterfire/issues/8205 When I add the GoogleService-Info.plist the problem seems to be fixed. I will close this as the problem is with Firebase and not OneSignal