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

openAppSettings implem on Android #237

Closed
somq opened this issue Nov 11, 2021 · 1 comment · Fixed by #241
Closed

openAppSettings implem on Android #237

somq opened this issue Nov 11, 2021 · 1 comment · Fixed by #241
Labels
enhancement New feature or request

Comments

@somq
Copy link

somq commented Nov 11, 2021

I'm developing a proprietary plugin which has many BLE features and get some of the inspiration from this plugin.
I noticed openAppSettings method is not implemented on Android though it's possible
So, for the reference if you wish to implement the feature, here is the code if someone wish to prepare a PR

openAppSettings implementation:

  @PluginMethod
  fun openAppSettings(call: PluginCall) {
    val intent = Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS) // App details
    intent.data = Uri.parse("package:" + getActivity().getPackageName());
    getActivity().startActivity(intent);
  }

Cheers!

@pwespi
Copy link
Member

pwespi commented Nov 14, 2021

Thank you very much. This has been added in #241.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants