-
Notifications
You must be signed in to change notification settings - Fork 4k
[firebase_messaging] Error while calling method messaging#getToken & Messaging#subscribeToTopic #9822
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
Comments
@usescrt |
I tried it on real phone. |
Thanks for the update. Since it works well on physical device but not in simulator, I don't think this could be related to the plugin, but could be coming from upstream. Can you provide the entire error log as requested earlier by running your code in verbose mode ? ie, if you are running |
|
I can confirm that the same error is thrown in our project. It started appearing yesterday, without any recent code change. It happens on the iOS simulator but not on a physical device. |
@vkammerer thanks |
@darshankawar I have not encountered any problems so far. |
Thanks for the update. Closing this based on above comment. |
@darshankawar upgrading Xcode to 14.1 and Flutter to 3.3.7 also fixed the issue for me. |
@darshankawar I have upgraded flutter 3.3.8 and xcode to 14.1, I still facing this issue
Click me
Click me
|
Bug report
Hello
It gave this error by itself without making any code changes.
Flutter 3.3.6
Xcode 14.0.1
firebase_messaging: ^14.0.3
firebase_core: ^2.1.1
FLTFirebaseMessaging: An error occurred while calling method Messaging#subscribeToTopic, errorOrNil => { NSLocalizedFailureReason = "Invalid registration response :'Error=INVALID_PARAMETERS'. It is missing 'token' field."; }
Steps to reproduce
Steps to reproduce the behavior:
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: