Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preferences plugin not available after upgrade to Capacitor v5 #1730

Closed
giloliveira-nmi opened this issue Aug 10, 2023 · 4 comments
Closed

Comments

@giloliveira-nmi
Copy link

Bug Report

Plugin(s)

Capacitor Version

Latest Dependencies:

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

Installed Dependencies:

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

Platform(s)

Android

Current Behavior

When trying to retrieve data from device localStorage in apps that are released through Google Play (on any track), an error pops up: Preferences plugin is not implemented. This issue does not appear during development, can be fixed when minifyEnabled is set to false in de build.gradle file and does not appear for other plugins. As such, it seems like ProGuard possibly removes references to the Preferences plugin.

Expected Behavior

Preferences plugin can be used while minifyEnabled can be set to true to reduce filesize.

Code Reproduction

Since the issue only appears on apps published through the Play Store, I am unable to reproduce this issue!

@Ionitron
Copy link
Collaborator

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 💙

@muuvmuuv

This comment was marked as off-topic.

@Ionitron
Copy link
Collaborator

Ionitron commented Sep 6, 2023

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
Copy link

ionitron-bot bot commented Sep 21, 2023

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 ionitron-bot bot locked and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants