Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: A valid Firebase project ID is required #103

Open
fernandojorgerodriguessilva opened this issue Jan 6, 2021 · 0 comments
Open

Error: A valid Firebase project ID is required #103

fernandojorgerodriguessilva opened this issue Jan 6, 2021 · 0 comments

Comments

@fernandojorgerodriguessilva

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant