-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix(messaging, ios): remove dummy APNS token for simulator #13570
Conversation
@russellwheatley I tested on iOS 18.1 simulator, it works fine. Thanks for your work. |
Came here just to say I was also running into this issue. This PR resolves it for me using the iOS 18.1 Simulator. |
Hi @daniel-carr-3000 , |
I set firebase_messaging to this branch:
|
I can confirm this solved my problem, what I did was change the firebase_messaging to the branch and Podfile.lock, then pod install in the IOS directory, and then I ran my application, and this fixed my problem |
Could you please explain the solution in detail. I'm new to Flutter and I'm having the same problem. I don't know how to solve it either. I would be very glad if you could explain it with pictures |
Could you please explain the solution in detail. I'm new to Flutter and I'm having the same problem. I don't know how to solve it either. I would be very glad if you could explain it with pictures |
hi ok, the problem is caused by firebase_messaging for me it was a problem related to generate FCM token(the token that we use in firebase cloud messaging to send notification to a specific user), in my application i generate the token this way
it was working and didn't have any problem in the past month then suddenly it stopped working so I first updated the firebase_messaging package as in the previous comments and set the source of the package to the provided one, `
place this in your pubspace.yaml file, and if there was any other firebase_messaging package in the pubspace.yaml remove it, then run
then the problem is solved. If you are not using the latest Flutter version, upgrade to the newest version by running flutter upgrade, then at flutter pub get step, you cloud have a conflict of dependence, for example, firebase_messaging requires a newer version of firebase_core, and another package requires an older version of firebase_core this is normal, and you just need to update those packages to a newer version |
|
@Yusufkulcu this has been merged in and is part of firebase_messaging v15.1.4. Change your
then run |
okey, thank you. Also have a new error |
my pubspec file |
problem is solved |
@ziqq if this is the error message youre getting please double check if you haved uploaded an APNS key on your firebase console. once youve uploade the APNS key delete the old GoogleServices.plist and reconfigure using flutterfire command. |
Naturally, the app worked without problems until last week. |
Update the flutter_message library. The current version has been released, vr problem has been solved. |
I tried and tried and tried and finally I think I got a FCM token. Solved. My VPN was a problem. |
Hi @russellwheatley thanks for this fix. It doesn't work on iOS 15.5 simulator but it does on iOS 16.x, 17.x, 18.x simulators. See my comment here . |
Description
It seems an APNS token is already received/set for iOS simulator and we no longer need to set a dummy APNS token.
Tested on iOS 17 and 18.
Related Issues
fixes #13558
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
).This will ensure a smooth and quick review process. Updating the
pubspec.yaml
and changelogs is not required.///
).melos run analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?