capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

@capacitor/share not working with capacitor v6

Open CoooWeee opened this issue 10 months ago • 2 comments

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

CoooWeee avatar Apr 16 '24 23:04 CoooWeee

Please, have a look at last comment to this pull request You have to change target SDK to 34

djonmayer avatar Apr 20 '24 10:04 djonmayer

npx cap migrate

bobibt avatar Apr 25 '24 11:04 bobibt

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.

ionitron-bot[bot] avatar May 28 '24 15:05 ionitron-bot[bot]