-
Notifications
You must be signed in to change notification settings - Fork 62
Description
What happened?
Update: I've figured out unity's proguard minify doesn't include some dependencies onesignal needs, resulting one signal initialization to fail. I can't disable minify because i can't build without it. So onesignal needs to patch itself to be compatible with proguard minify.
It looks like unity's single dex file is not enought to hold firebase firestore,auth and onesignal and using minify breaks things
I'm followed one signal unity sdk setup steps , no problems in editor. Wrote single line of code in my notificationsmanager c# script( OneSignal.Default.Initialize("xcvsdv");) But when i had built in my samsung phone a70, i didn't receive any notification ( i sent notification from dashbouard.) I noticed my phone haven't subscribed to audience. And got this message from autoconnected profiler
note: i did not do steps for amazon-store
AndroidJavaException: java.lang.ClassNotFoundException: com.onesignal.OneSignal

Steps to reproduce?
1. open empty project
2. import onesignal sdk
3. use unity's minify at publish settings to build
4. enable autoconnect profiler
5. classnotfound exception: com.onesignal.onesignal at mobile phoneWhat did you expect to happen?
App to subscribe to onesignal audience
Unity version
2020.3.42
OneSignal Unity SDK version
3.0.6
Platform
Android
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
