Closed tuanhwing closed 3 years ago
@tuanhwing
firebaseMessaging.subscribeToTopic('weather');
doesn't seem to be the correct implementation to subscribe.
Try like this: await FirebaseMessaging.instance.subscribeToTopic('weather');
and see this document link for your reference: https://firebase.flutter.dev/docs/messaging/usage#subscribing-to-topics and see if it works for you.
Thanks.
Hey @tuanhwing. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@tuanhwing if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
Bug report
Describe the bug Firebase messaging subscribing to topic does not seem to work on iOS. But Android work fine. I am facing a problem when subscribing to topic by
firebaseMessaging.subscribeToTopic('weather');
exception:[firebase_messaging/missing-device-id] An unknown error has occurred.
Steps to reproduce
pubspec.yaml:
firebase_core: ^1.0.0 firebase_analytics: ^8.0.0 firebase_messaging: ^10.0.0 firebase_crashlytics: ^2.1.1
Flutter doctor
Run
flutter doctor
and paste the output below:Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below: