capacitor-plugins
capacitor-plugins copied to clipboard
@capacitor/share not working with capacitor v6
Bug Report
Plugin(s)
capacitor
Capacitor Version
Latest Dependencies:
@capacitor/cli: 6.0.0 @capacitor/core: 6.0.0 @capacitor/android: 6.0.0 @capacitor/ios: 6.0.0
Installed Dependencies:
@capacitor/cli: 6.0.0 @capacitor/core: 6.0.0 @capacitor/ios: 6.0.0 @capacitor/android: 6.0.0
Platform(s)
- android tried sdkVersion 33 and 34
Current Behavior
Cannot resolve symbol 'UPSIDE_DOWN_CAKE' Cannot resolve symbol 'FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT'
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
flags = flags | PendingIntent.FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT;
}
Expected Behavior
complies without errors
Code Reproduction
- just add the plugin to your project
- sync
- rebuild in android studio
Please, have a look at last comment to this pull request You have to change target SDK to 34
npx cap migrate
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.