OneSignal / OneSignal-Unity-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Unity app with OneSignal. https://onesignal.com
Other
222 stars 61 forks source link

Onesignal build not installing in Android 12 (API 31), missing required android:export in AndroidManifest.xml #431

Closed RafaelCarpetres closed 2 years ago

RafaelCarpetres commented 2 years ago

I'm having big trouble with Onesignal 2.13.6 Apk's in Android 12. image

We are getting this issue when try to install our Apk to any Android 12 device (tried with Samsung S21 pro and Android Emulator API 31), this installation is working fine on any other device (iOS, Android 11 and older)

I updated the OneSignal to the AssetStore version but the issue is still happening

frostweep commented 2 years ago

Hello,

We facing the same issue and also didnt found a solution yet since the problem is in the compiled library.

I also know that Unity team did changes in latest Unity version that adds endroid:exported=true during build but I dont think that it will also modify compiled library.

Currently we are looking on using of latest beta version of SDK which should include fix already.

jQuera commented 2 years ago

Yeah, the screenshot build is in Unity 2020.3.25 LTS with the android:exported fixed, so the problem is OneSignal

jQuera commented 2 years ago

I'm trying to update to OneSignal 3.0.0 - beta.3 but I'm getting a lot of issues related to the new iOS package

imagen

jkasten2 commented 2 years ago

@RafaelCarpetres This compatibility is addressed in the OneSignal-Unity-SDK 3.0.0, see details in https://github.com/OneSignal/OneSignal-Unity-SDK/issues/415 on the steps to migrate to the major version.

@RSJcl Some of the errors, the ones with PBXProjectExtension.cs are fixed in the released 3.0.0 version. The others require you to follow the migration instructions. Please open a new issue if you continue to see these compile errors after double checking the guide.

Since this issue topic is on a specific Android 12 issue and it is now resolved in a release version closing this issue.