Skip to content

conflict with react-native-onesignal, react-native-code-push and firebase, FirebaseInstanceId: Failed to get FIS auth token #997

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

Closed
omarDtp opened this issue May 27, 2020 · 3 comments
Labels
Android Dependencies Pull requests that update a dependency file Help Wanted

Comments

@omarDtp
Copy link

omarDtp commented May 27, 2020

Description:
my application supports remote push notification and local schedule notification therefore i installed both libraries react-native-onesignal and react-native-push-notification.
it was working fine till lately i got this error on android devices

2020-05-27 16:51:16.628 27376-27663/xx.xxx.xxxxx E/FirebaseInstanceId: Failed to get FIS auth token 2020-05-27 16:51:16.639 27376-27376/xx.xxx.xxxxx E/RNPushNotification: exception java.io.IOException: SERVICE_NOT_AVAILABLE at com.google.firebase.iid.zzu.then(com.google.firebase:firebase-iid@@20.2.0:16) at com.google.android.gms.tasks.zzd.run(Unknown Source:5) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at com.google.android.gms.common.util.concurrent.zza.run(Unknown Source:6) at java.lang.Thread.run(Thread.java:764) 2020-05-27 16:51:16.639 27376-27376/xx.xxx.xxxxx E/RNPushNotification: exception java.io.IOException: SERVICE_NOT_AVAILABLE at com.google.firebase.iid.zzu.then(com.google.firebase:firebase-iid@@20.2.0:16) at com.google.android.gms.tasks.zzd.run(Unknown Source:5) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at com.google.android.gms.common.util.concurrent.zza.run(Unknown Source:6) at java.lang.Thread.run(Thread.java:764) 2020-05-27 16:52:31.196 27376-27764/xx.xxx.xxxxx E/FirebaseInstanceId: Failed to get FIS auth token

(your description here)

Environment
environment
"@react-native-firebase/app": "^7.1.0",
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-onesignal": "^3.7.3",
"react-native-push-notification": "^3.5.2",

Steps to Reproduce Issue:

  1. (your steps here)

Anything else:

(crash stacktraces, as well as any other information here)

@omarDtp omarDtp changed the title conflict with react-native-onesignal, react-native-code-push and firebase conflict with react-native-onesignal, react-native-code-push and firebase, FirebaseInstanceId: Failed to get FIS auth token May 27, 2020
@rgomezp
Copy link
Contributor

rgomezp commented May 28, 2020

Howdy,
This seems different than #983 but both are issues involving the two conflicting libraries. I'd appreciate you commenting over in the React Native Repo issue that is ongoing (seems more related to iOS, but still worth looking at/upvoting).

In the meantime, perhaps adding the OneSignal gradle plugin will fix this issue for you.

Let us know if this works! Cheers

@rgomezp rgomezp added Android Dependencies Pull requests that update a dependency file Help Wanted labels May 28, 2020
@omarDtp
Copy link
Author

omarDtp commented Jun 3, 2020

@rgomezp thanks I solved it, it was an issue with license agreement on firebase, I had to agree to new license agreement

@rgomezp
Copy link
Contributor

rgomezp commented Jun 8, 2020

Great to hear @omarDtp ,
Enjoy!

@rgomezp rgomezp closed this as completed Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Dependencies Pull requests that update a dependency file Help Wanted
Projects
None yet
Development

No branches or pull requests

2 participants