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

Appcelerator 9 #95

Open
leandrosfar opened this issue Apr 13, 2020 · 9 comments
Open

Appcelerator 9 #95

leandrosfar opened this issue Apr 13, 2020 · 9 comments

Comments

@leandrosfar
Copy link

After upgrade appcelerator to version 9, onesignal module stopped working (Android).

Device or emulator startup error:

[INFO] ti.playservices: Google Play Services is available. (version: 12451000)
[ERROR] OneSignal: Unknown error getting GCM Token
[ERROR] OneSignal: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/gcm/GoogleCloudMessaging;
[ERROR] OneSignal: at com.onesignal.PushRegistratorGCM.getToken(PushRegistratorGCM.java:41)
[ERROR] OneSignal: at com.onesignal.PushRegistratorAbstractGoogle.attemptRegistration(PushRegistratorAbstractGoogle.java:97)
[ERROR] OneSignal: at com.onesignal.PushRegistratorAbstractGoogle.access$100(PushRegistratorAbstractGoogle.java:37)
[ERROR] OneSignal: at com.onesignal.PushRegistratorAbstractGoogle$1.run(PushRegistratorAbstractGoogle.java:84)
[ERROR] OneSignal: at java.lang.Thread.run(Thread.java:764)
[ERROR] OneSignal: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.gcm.GoogleCloudMessaging" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/br.com.campograndenews.noticiasapp-YynjN3Xqd9BFPXv9Z2IY5g==/base.apk"],nativeLibraryDirectories=[/data/app/br.com.campograndenews.noticiasapp-YynjN3Xqd9BFPXv9Z2IY5g==/lib/x86, /data/app/br.com.campograndenews.noticiasapp-YynjN3Xqd9BFPXv9Z2IY5g==/base.apk!/lib/x86, /system/lib, /system/vendor/lib]]
[ERROR] OneSignal: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
[ERROR] OneSignal: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
[ERROR] OneSignal: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
[ERROR] OneSignal: ... 5 more
[INFO] ti.playservices: Google Play Services is available. (version: 12451000)

@nascado
Copy link

nascado commented Sep 16, 2020

Is this solved in between?
I have the same error. Titanium SDK 9.0.3

@leandrosfar
Copy link
Author

Hi

Yes.

I tested now, with:

@sandeep14
Copy link

sandeep14 commented Oct 31, 2020

Hi ,
I am also facing same issue with onesignal 2.1.2 (Ti sdk 9.2.1.GA), it this fixed?

@leandrosfar
Copy link
Author

Hello, I just tested with Ti 9.2.2 + oniginal 2.1.2 + titanium-firebase-core 6 + titanium-firebase-cloud-messaging 3.0.1: it worked

@sandeep14
Copy link

thanks it worked, may be I missing titanium-firebase-cloud-messaging modules

@frodfigu
Copy link

frodfigu commented Nov 8, 2020

With all this configuration... my onesignal dashboard shows me: Outdated Support Android Library.

Any solution? And the pushes it isn´t received! :-(

@frodfigu
Copy link

frodfigu commented Nov 8, 2020

And another error: [ERROR] OneSignal: Missing Google Project number!
[ERROR] OneSignal: Please enter a Google Project number / Sender ID on under App Settings > Android > Configuration on the OneSignal dashboard.
ERROR] OneSignal: The Firebase FCM library is missing! Please make sure to include it in your project.
[ERROR] OneSignal: The included Android Support Library is to old or incomplete. Please update to the 26.0.0 revision or newer.

@sandeep14
Copy link

@frodfigu Can you provide details like which playservice version are you using ? have you setup all configuration as mention in documentation?

@frodfigu
Copy link

frodfigu commented Nov 9, 2020

@sandeep14

Adding this configuration solve my problem!

¡Thank you very much!

<module platform="android" version="2.1.2">com.williamrijksen.onesignal</module>
<module platform="android" version="17.5.0">ti.playservices</module>
<module platform="android" version="6.0.0">firebase.core</module>
<module platform="android" version="3.0.1">firebase.cloudmessaging</module>

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

4 participants