ionic-team / capacitor-plugins

Official plugins for Capacitor ⚑️
529 stars 594 forks source link

local-notifications - Android - No sound when built with shrinkResources option #2191

Closed UZ8VLqifK36Z closed 1 month ago

UZ8VLqifK36Z commented 2 months ago

Bug Report

Plugin(s)

local-notifications

Capacitor Version

   Capacitor Doctor   

Latest Dependencies:

  @capacitor/cli: 6.1.2
  @capacitor/core: 6.1.2
  @capacitor/android: 6.1.2
  @capacitor/ios: 6.1.2

Installed Dependencies:

  @capacitor/cli: 6.1.2
  @capacitor/core: 6.1.2
  @capacitor/android: 6.1.2
  @capacitor/ios: 6.1.2

[success] Android looking great! πŸ‘Œ

Platform(s)

Android

Current Behavior

Hello, I'm not sure if this is really a bug or if the documentation needs to be updated, but building with the shrinkResources option prevents sound from being played with notifications. https://developer.android.com/build/shrink-code

I have carefully checked the Capacitor documentation, but I didn't find anything warning against this build option.

Other Technical Details

Tested on virtual Android 10.0 (Google Play) and 14.0 (Google Play) β†’ no sound. Also tested on two physical devices running Android 14. One physical device gives default system sound and the other gives no sound I think the option shrinkResources delete the sound file placed in the res/raw folder.

Ionitron commented 1 month ago

This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed.

Please see the Contributing Guide for how to create a Sample App.

Thanks! Ionitron πŸ’™

Ionitron commented 1 month ago

It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.

Have a great day! Ionitron πŸ’™

ionitron-bot[bot] commented 3 weeks ago

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.