2

My project flutter 3.3 and fcm last version it error on product mode It not get token device all android device How config

1 Answers1

0

You'll need googleplay services in Android studio installed as well as emulator capable of running google APIs. then from root project directory run flutter pub add firebase_messaging. Also you will need to add this in the manifest file

<meta-data
    android:name="firebase_messaging_auto_init_enabled"
    android:value="false" />
<meta-data
    android:name="firebase_analytics_collection_enabled"
    android:value="false" />

Also this might be useful for dealing with the token: Firebase (FCM) registration token in Flutter

Julia Pak
  • 475
  • 6
  • 19