Closed Ayyagaries closed 4 years ago
I have upgraded and now I am getting this error
[ERROR] TiExceptionHandler: (main) [2,1375] /PushNotifications.js:51 [ERROR] TiExceptionHandler: fcm.registerForPushNotifications(); [ERROR] TiExceptionHandler: ^ [ERROR] TiExceptionHandler: Error: Default FirebaseApp is not initialized in this process . Make sure to call FirebaseApp.initializeApp(Context) first. [ERROR] TiExceptionHandler: at registerForFireBaseAndroid (/PushNotifications.js:51:5) [ERROR] TiExceptionHandler: at /PushNotifications.js:18:1 [ERROR] TiExceptionHandler: at Module._runScript (ti:/module.js:587:9) [ERROR] TiExceptionHandler: at Module.load (ti:/module.js:106:7) [ERROR] TiExceptionHandler: at Module.loadJavascriptText (ti:/module.js:436:9) [ERROR] TiExceptionHandler: at Module.loadAsFile (ti:/module.js:488:15) [ERROR] TiExceptionHandler: at Module.loadAsFileOrDirectory (ti:/module.js:410:20) [ERROR] TiExceptionHandler: at Module.require (ti:/module.js:290:17) [ERROR] TiExceptionHandler: at Module.global.Module.require (<embedded>:4754:34) [ERROR] TiExceptionHandler: at require (ti:/module.js:550:15) [ERROR] TiExceptionHandler: [ERROR] TiExceptionHandler: com.google.firebase.FirebaseApp.getInstance(com.google.firebase:firebase-common@@19.3.0:184) [ERROR] TiExceptionHandler: com.google.firebase.iid.FirebaseInstanceId.getInstance(com.google.firebase:firebase-iid@@20.2.1:1) [ERROR] TiExceptionHandler: firebase.cloudmessaging.CloudMessagingModule.registerForPushNotifications(CloudMessagingModule.java:108) [ERROR] TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Object.nativeCallProperty(Native Method) [ERROR] TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Object.callProperty(V8Object.java:75) [ERROR] TiExceptionHandler: org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1224) [ERROR] TiExceptionHandler: android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] TiExceptionHandler: android.os.Looper.loop(Looper.java:223) [ERROR] TiExceptionHandler: android.app.ActivityThread.main(ActivityThread.java:7656) [ERROR] TiExceptionHandler: java.lang.reflect.Method.invoke(Native Method) [ERROR] V8Exception: Exception occurred at /PushNotifications.js:51: Uncaught Error: Default FirebaseApp is not initialized in this process . Make sure to call FirebaseApp.initializeApp(Context) first.
Please use the search first: https://github.com/hansemannn/titanium-firebase-cloud-messaging/issues/73 and make sure to follow the guides: https://github.com/hansemannn/titanium-firebase#android-notes
I have upgraded and now I am getting this error
[ERROR] TiExceptionHandler: (main) [2,1375] /PushNotifications.js:51 [ERROR] TiExceptionHandler: fcm.registerForPushNotifications(); [ERROR] TiExceptionHandler: ^ [ERROR] TiExceptionHandler: Error: Default FirebaseApp is not initialized in this process . Make sure to call FirebaseApp.initializeApp(Context) first. [ERROR] TiExceptionHandler: at registerForFireBaseAndroid (/PushNotifications.js:51:5) [ERROR] TiExceptionHandler: at /PushNotifications.js:18:1 [ERROR] TiExceptionHandler: at Module._runScript (ti:/module.js:587:9) [ERROR] TiExceptionHandler: at Module.load (ti:/module.js:106:7) [ERROR] TiExceptionHandler: at Module.loadJavascriptText (ti:/module.js:436:9) [ERROR] TiExceptionHandler: at Module.loadAsFile (ti:/module.js:488:15) [ERROR] TiExceptionHandler: at Module.loadAsFileOrDirectory (ti:/module.js:410:20) [ERROR] TiExceptionHandler: at Module.require (ti:/module.js:290:17) [ERROR] TiExceptionHandler: at Module.global.Module.require (<embedded>:4754:34) [ERROR] TiExceptionHandler: at require (ti:/module.js:550:15) [ERROR] TiExceptionHandler: [ERROR] TiExceptionHandler: com.google.firebase.FirebaseApp.getInstance(com.google.firebase:firebase-common@@19.3.0:184) [ERROR] TiExceptionHandler: com.google.firebase.iid.FirebaseInstanceId.getInstance(com.google.firebase:firebase-iid@@20.2.1:1) [ERROR] TiExceptionHandler: firebase.cloudmessaging.CloudMessagingModule.registerForPushNotifications(CloudMessagingModule.java:108) [ERROR] TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Object.nativeCallProperty(Native Method) [ERROR] TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Object.callProperty(V8Object.java:75) [ERROR] TiExceptionHandler: org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1224) [ERROR] TiExceptionHandler: android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] TiExceptionHandler: android.os.Looper.loop(Looper.java:223) [ERROR] TiExceptionHandler: android.app.ActivityThread.main(ActivityThread.java:7656) [ERROR] TiExceptionHandler: java.lang.reflect.Method.invoke(Native Method) [ERROR] V8Exception: Exception occurred at /PushNotifications.js:51: Uncaught Error: Default FirebaseApp is not initialized in this process . Make sure to call FirebaseApp.initializeApp(Context) first.