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: INVALID_PARAMETERS Error #61

Closed
shireen-obtainit opened this issue Sep 3, 2015 · 4 comments
Closed

java.io.IOException: INVALID_PARAMETERS Error #61

shireen-obtainit opened this issue Sep 3, 2015 · 4 comments

Comments

@shireen-obtainit
Copy link

Hii,
I am new in Android app development. I am working on GCM notification. I have followed all the steps mentioned in https://developers.google.com/cloud-messaging/android/start. But getting error java.io.IOException: INVALID_PARAMETERS Error in RegistrationIntentService.java file at line 57.
String token = instanceID.getToken(getString(R.string.gcm_defaultSenderId), GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);
Can you support me to solve this error?????

@kroikie
Copy link
Contributor

kroikie commented Sep 3, 2015

What device are you using? Also could you try the sample on another device or in an emulator that has Google Play Services and see if you get a different result?

@shireen-obtainit
Copy link
Author

Hii,
I tried running the app on Samsung Galaxy A5 ans even on Moto E.
I even tried running the app using Genymotion Emulator but it give error as
Google play services is not available and when i tried "Get Google play service" it only shows the loading sign and doesn't respond anything.But when I am running project using real device it is giving error as java.io.IOException: INVALID_PARAMETERS. Any clue about this?

@kroikie
Copy link
Contributor

kroikie commented Sep 9, 2015

I'd suggest trying with one of the emulators in Android Studio, you can create an emulator that has the Google APIs (Google Play Services). INVALID_PARAMETERS would suggest that your sender id is not being recognized. Could you log your sender id and check that is is not null or otherwise incorrect?

@samtstern
Copy link
Contributor

@shireen-obtainit going to close this issue for lack of activity. If you are still getting this problem, please re-open and we'll be happy to keep looking at it.

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

3 participants