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

java.io.IOException: MISSING_INSTANCEID_SERVICE #3

Open
sahas- opened this issue Dec 25, 2015 · 9 comments
Open

java.io.IOException: MISSING_INSTANCEID_SERVICE #3

sahas- opened this issue Dec 25, 2015 · 9 comments

Comments

@sahas-
Copy link

sahas- commented Dec 25, 2015

Hi,
This repo is very useful, particularly for non-java guys like me. Thanks for your effort.
I pulled down code, generated the google-services.json for my app and replaced here then ran react-native run-android. Then getting below error from the console, I must be doing something silly.. appreciate any suggestions to fix the same.

12-25 16:18:04.278  1490  1546 D GcmRegistrationService: Failed to complete token refresh
12-25 16:18:04.278  1490  1546 D GcmRegistrationService: java.io.IOException: MISSING_INSTANCEID_SERVICE
12-25 16:18:04.278  1490  1546 D GcmRegistrationService:    at com.google.android.gms.iid.zzc.zza(Unknown Source)
12-25 16:18:04.278  1490  1546 D GcmRegistrationService:    at com.google.android.gms.iid.zzc.zzb(Unknown Source)
12-25 16:18:04.278  1490  1546 D GcmRegistrationService:    at com.google.android.gms.iid.zzc.zza(Unknown Source)
12-25 16:18:04.278  1490  1546 D GcmRegistrationService:    at com.google.android.gms.iid.InstanceID.zzc(Unknown Source)
12-25 16:18:04.278  1490  1546 D GcmRegistrationService:    at com.google.android.gms.iid.InstanceID.getToken(Unknown Source)
12-25 16:18:04.278  1490  1546 D GcmRegistrationService:    at com.oney.gcm.GcmRegistrationService.onHandleIntent(GcmRegistrationService.java:38)
12-25 16:18:04.278  1490  1546 D GcmRegistrationService:    at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)
12-25 16:18:04.278  1490  1546 D GcmRegistrationService:    at android.os.Handler.dispatchMessage(Handler.java:102)
12-25 16:18:04.278  1490  1546 D GcmRegistrationService:    at android.os.Looper.loop(Looper.java:148)
12-25 16:18:04.278  1490  1546 D GcmRegistrationService:    at android.os.HandlerThread.run(HandlerThread.java:61)
@oney
Copy link
Owner

oney commented Dec 26, 2015

Thanks!

  • Can you try using origin google-services.json(not replace to yours) to see if the error happens?
  • What device do you test?

@sahas-
Copy link
Author

sahas- commented Dec 26, 2015

Hi,
Thanks.
I tried with default demo apps google-services.json file and still getting the same error.
Devices are

  1. emulator "5.2" Marshmallow (6.0.0) XXHDPI Phone - 6.0"
  2. also on a real device Samsung Galaxy S4.

@CoolMind
Copy link

CoolMind commented Jan 20, 2017

@sahas- install Google Play Services on device.

@CoolMind
Copy link

It is amusing, after almost 3 years I again got this exception, but now in Firebase Cloud Messaging. Yes, an emulator didn't contain Google Play Services.

@glWesley
Copy link

@CoolMind hey buddy, did you work it out, I came across the same issue with FCM on Galaxy S6 SM-G9200 android 5.1.1

@CoolMind
Copy link

CoolMind commented Dec 25, 2019

@glWesley, sorry, I've gotten the exception on an emulator. It didn't contain Google Play Services, and I changed the emulator. Does your device have GPS (not outdated, probably logged in Google account)?
Does the bug appear only on it or many other devices? If on other, maybe google-services.json has some error.

@myz-make
Copy link

myz-make commented Mar 9, 2022

我是在设备上运行的,也是报这个错误,改怎么解决啊

@myz-make
Copy link

myz-make commented Mar 9, 2022

I am running on the device, also reported this error, how to fix it

@Pushpendracolourmoon
Copy link

I am also getting the same error on Amazon Firestick. Firebase should rectify the issue!

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

6 participants