skip to Main Content

Flutter – Token retrieval failed: SERVICE_NOT_AVAILABLE. Will retry token retrieval

void main() async{ WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform ); final _firebaseMessaing = FirebaseMessaging.instance; await _firebaseMessaing.requestPermission(); final fCMToken = await _firebaseMessaing.getToken(); print("This is token =========> ${fCMToken}"); runApp(MyApp()); } Here I want the token but some errors occurs and the Token does…

VIEW QUESTION

Firebase Cloud Messaging API (V1)

Trying to implement Firebase Cloud Messaging API (V1) as Cloud Messaging API (Legacy) is getting depreciated from 20/06/2024, I'm trying to generate API key for the new API v1, but there seems to be no way around it. The attached…

VIEW QUESTION
Back To Top
Search