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

Error in Firebase Functions after deploying Nuxt 3 app + VueFire

I recently encountered this error after deploying my Nuxt app to Firebase. Error: Failed to read credentials from file service-account.json: Error: ENOENT: no such file or directory, open 'service-account.json' at .readCredentialFile ( /workspace/node_modules/firebase-admin/lib/app/credential-internal.js:507 ) at .credentialFromFile ( /workspace/node_modules/firebase-admin/lib/app/credential-internal.js:480 ) at…

VIEW QUESTION
Back To Top
Search