Closed BuffMcBigHuge closed 2 years ago
thanks for the issue, but it's already reported on the plugins repository https://github.com/ionic-team/capacitor-plugins/issues/690
capacitor will officially support to target SDK 31 on the next 4.0.0 release and plugins will also be updated to target SDK 31 and all the issues that targeting SDK 31 causes will be fixed.
Ah didn't realize there was a separate issue section for plugins. Thanks 👍
Hi, I've run into this bug. Looks like compacitor 4.0 is in beta at the moment.
As a workaround until it's live, can you tell me where to set the "FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent" ?
Same issue here
+1
Bug Report
Capacitor Version
@capacitor/cli: 3.4.0 @capacitor/core: 3.4.0 @capacitor/android: 3.4.0 @capacitor/ios: 3.4.0 @capacitor/share: 1.1.1
Platform(s)
Android
Current Behavior
Calling the share function
Share.share({})
viaimport { Share } from '@capacitor/share';
crashes the Android app.Expected Behavior
It should not crash when target >= 31.
Code Reproduction
js:
variables.gradle
Additional Context
https://developer.android.com/about/versions/12/behavior-changes-12 https://developer.android.com/reference/android/app/PendingIntent#FLAG_IMMUTABLE https://github.com/qiscus/qiscus-sdk-android/releases/tag/1.3.35