com.williamrijksen.onesignal
com.williamrijksen.onesignal copied to clipboard
Error: A valid Firebase project ID is required
Hi, i installed this plugin but i'm getting the error below:
[ERROR] : OneSignal: Unknown error getting FCM Token [ERROR] : OneSignal: java.lang.IllegalArgumentException: Please set your project ID. A valid Firebase project ID is required to communicate with Firebase server APIs: It identifies your project with Google. [ERROR] : OneSignal: at com.google.android.gms.common.internal.Preconditions.checkNotEmpty(com.google.android.gms:play-services-basement@@17.5.0:8) [ERROR] : OneSignal: at com.google.firebase.iid.FirebaseInstanceId.zza(com.google.firebase:firebase-iid@@20.2.1:52) [ERROR] : OneSignal: at com.google.firebase.iid.FirebaseInstanceId.getInstance(com.google.firebase:firebase-iid@@20.2.1:2) [ERROR] : OneSignal: at com.onesignal.PushRegistratorFCM.getToken(PushRegistratorFCM.java:82) [ERROR] : OneSignal: at com.onesignal.PushRegistratorAbstractGoogle.attemptRegistration(PushRegistratorAbstractGoogle.java:97) [ERROR] : OneSignal: at com.onesignal.PushRegistratorAbstractGoogle.access$100(PushRegistratorAbstractGoogle.java:37) [ERROR] : OneSignal: at com.onesignal.PushRegistratorAbstractGoogle$1.run(PushRegistratorAbstractGoogle.java:84) [ERROR] : OneSignal: at java.lang.Thread.run(Thread.java:764)
I had configured the one signal account with the firebase server key and sender id and put in my app tiapp.xml this code:
<android xmlns:android="http://schemas.android.com/apk/res/android"> <manifest android:versionCode="1" xmlns:android="http://schemas.android.com/apk/res/android"> <application> <meta-data android:name="onesignal_app_id" android:value="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"/> </application> </manifest> </android>
Can anyone help me? Thanks