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

ClassCastException in OneSignal.init #47

Closed
ayltai opened this issue May 1, 2016 · 2 comments
Closed

ClassCastException in OneSignal.init #47

ayltai opened this issue May 1, 2016 · 2 comments

Comments

@ayltai
Copy link

ayltai commented May 1, 2016

The init method (OneSignal.java:196) tries to get Google project number as a String but it is actually an int, causing ClassCastException.

@jkasten2
Copy link
Member

jkasten2 commented May 1, 2016

If your are manually setting onesignal_google_project_number in your AndroidManifest.xml make sure it starts with str: noted in step 2.5 of the OneSignal Eclipse setup documenation.

With gradle or Android Studio builds use the project number normally in onesignal_google_project_number in manifestPlaceholders per step 1.2 of the OneSignal Android Studio documentation. This is because the SDK's AndroidManifest.xml in the .aar file already includes this at line 9.

@jkasten2 jkasten2 closed this as completed May 1, 2016
@ayltai
Copy link
Author

ayltai commented May 1, 2016

Thanks mate

jkasten2 added a commit that referenced this issue Jul 3, 2019
* Android 4.4 has a rendering bug that cause the whole WebView to by extremely blurry
* As a workaround disable hardware rendering for the WebView.
jkasten2 added a commit that referenced this issue Jul 8, 2019
* Android 4.4 has a rendering bug that cause the whole WebView to by extremely blurry
* As a workaround disable hardware rendering for the WebView.
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

2 participants