Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 of 3 tasks
Toolenaar opened this issue Oct 9, 2023 · 2 comments
Closed
2 of 3 tasks

Comments

@Toolenaar
Copy link

Toolenaar commented Oct 9, 2023

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?

  • iOS
  • Android

Relevant log output

Screenshot 2023-10-09 at 15 39 22

Code of Conduct

  • I agree to follow this project's Code of Conduct
@MuhamadHaydar
Copy link

MuhamadHaydar commented Oct 10, 2023

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
Copy link
Author

Seems to be related with this => firebase/flutterfire#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants