Closed arpitkushwaha closed 7 months ago
Hi @arpitkushwaha thanks for reaching out!
Can you please make sure you can log into the Google Play store on the device and can download an app to make sure the device can fully authenticate with Google?
This seems that it may be device-related; can you please try a different device like the Android Studio emulator and let us know the results?
Thanks!
Hi, @jennantilla Thanks a lot for the quick response.
Yes, we can log into Google Play Store on the device and can download apps from there. We also checked for Google Play Services and those are present.
It is working fine on the Android Studio emulator. But it is occurring for other devices like Realme, Samsung, etc. that too on different AndroidOS 13, 12, 11. and it is reproducing for a lot of devices without any specific pattern.
Is there anything we can do to identify the root cause? Or do you have any suggestions on how to handle this?
Hello @jennantilla, Did you find anything?
Hello @jennantilla, I would greatly appreciate it if you could kindly share some insights regarding this matter. Your input would be tremendously valuable to us, as this issue is currently affecting the performance of our product. Your assistance would be highly regarded. Thank you in advance.
Hello @arpitkushwaha apologies that I've missed responding back to you.
Is this still a current concern? PHONE_REGISTRATION_ERROR is an error thrown by Firebase but I couldn't find any specifics other than the "Google Play services" app on the device is having an issue.
You could also try a fresh install and see if that helps.
Thanks!
@arpitkushwaha The PHONE_REGISTRATION_ERROR
error means something went wrong talking to Google's API. There is little this SDK can do with such an internal error expect for retry, which the OneSignal SDK is already doing.
The device itself either has an issue or it has an issue connecting to Google's servers. You can try some of the suggestions from others who have seen this issue:
The only official reference from Google themselves on this issue is noted here:
/** Incorrect phone registration with Google. This phone doesn't currently support C2DM. */
public static final String ERR_PHONE_REGISTRATION_ERROR = "PHONE_REGISTRATION_ERROR";
What happened?
Not able to get/generate FCM tokens on some devices like Realme etc. Google Play Services are installed and functioning correctly on the affected device.
Getting below exception while trying to generate/fetch the token.
java.io.IOException: PHONE_REGISTRATION_ERROR
Firebase Messaging version: 23.0.0
Steps to reproduce?
What did you expect to happen?
The FCM token should generate on the device so that notifications can work.
OneSignal Android SDK version
Release 4.8.6
Android version
13, 12
Specific Android models
Relevant log output
Code of Conduct