diff --git a/.github/AAR Source (Android)/java/com/yasirkula/unity/NativeShareBroadcastListener.java b/.github/AAR Source (Android)/java/com/yasirkula/unity/NativeShareBroadcastListener.java index 07d477a..8e5fe0b 100644 --- a/.github/AAR Source (Android)/java/com/yasirkula/unity/NativeShareBroadcastListener.java +++ b/.github/AAR Source (Android)/java/com/yasirkula/unity/NativeShareBroadcastListener.java @@ -26,6 +26,10 @@ public static IntentSender Initialize( Context context ) // Maybe FLAG_IMMUTABLE is sufficient but the pre-31 default value was implicitly mutable and I don't trust // all social apps to work correctly on Android 12+ (API 31+) if I set it to FLAG_IMMUTABLE //pendingIntentFlags |= PendingIntent.FLAG_MUTABLE; + + // Only temporarily set the IMMUTABLE flag to avoid crashes until Android 12 SDK is officially released + // https://github.com/yasirkula/UnityNativeShare/issues/130 + pendingIntentFlags |= PendingIntent.FLAG_IMMUTABLE; } return PendingIntent.getBroadcast( context, 0, receiverIntent, pendingIntentFlags ).getIntentSender(); diff --git a/Plugins/NativeShare/Android/NativeShare.aar b/Plugins/NativeShare/Android/NativeShare.aar index ee77424..d8a6833 100644 Binary files a/Plugins/NativeShare/Android/NativeShare.aar and b/Plugins/NativeShare/Android/NativeShare.aar differ diff --git a/package.json b/package.json index 81ecf7f..d668f34 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.yasirkula.nativeshare", "displayName": "Native Share", - "version": "1.4.3", + "version": "1.4.4", "documentationUrl": "https://github.com/yasirkula/UnityNativeShare", "changelogUrl": "https://github.com/yasirkula/UnityNativeShare/releases", "licensesUrl": "https://github.com/yasirkula/UnityNativeShare/blob/master/LICENSE.txt",