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

Fix GCM sender ID reading #250

Merged
merged 1 commit into from
Feb 19, 2018
Merged

Fix GCM sender ID reading #250

merged 1 commit into from
Feb 19, 2018

Conversation

ronocod
Copy link
Contributor

@ronocod ronocod commented Feb 19, 2018

When reading the GCM sender ID from config.xml, the Android OS XML parser can read it in as a string representation of a float, including scientific notation. This string is unusable as a sender ID.

To fix this, we read the sender ID directly from the google-services.json file if it's present. If the sender ID from the preferences is missing, or unusable, we return the ID from the JSON file.

This PR also includes some cleanup of the IntercomBridge class.

@ronocod ronocod merged commit 921fe90 into master Feb 19, 2018
@ronocod ronocod deleted the conor/gcm-sender branch February 19, 2018 16:08
@ronocod ronocod mentioned this pull request Feb 23, 2018
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

Successfully merging this pull request may close these issues.

2 participants