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

feat: Provide a way to open NFC settings when device has NFC #81

Open
Mahmud0808 opened this issue Nov 11, 2024 · 4 comments
Open

feat: Provide a way to open NFC settings when device has NFC #81

Mahmud0808 opened this issue Nov 11, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Mahmud0808
Copy link
Contributor

Description:
Implement a feature that automatically directs users to the NFC settings page when the device supports NFC.

Visual Representation:

Proposed Implementation:

  • The app should detect if the device supports NFC.
  • If NFC is supported, the app should provide a way for the user to open the NFC settings directly.
  • The following Kotlin function can be used to open the NFC settings on Android:
private fun openNfcSettings() {
    val intent = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
        Intent(Settings.Panel.ACTION_NFC)
    } else {
        Intent(Settings.ACTION_WIRELESS_SETTINGS)
    }
    startActivity(intent)
}

Benefits:

  • Simplifies the process of enabling or configuring NFC for users.
@aniruddha-adhikary aniruddha-adhikary added the enhancement New feature or request label Nov 15, 2024
@aniruddha-adhikary
Copy link
Owner

This is a great feature request, we should prioritize.

@Zamiul-rashid
Copy link
Contributor

@aniruddha-adhikary I will start on this if its not fixed already

@aniruddha-adhikary
Copy link
Owner

@Zamiul-rashid please go ahead

@demo-Ashif
Copy link

Any update on this @Zamiul-rashid ?

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

No branches or pull requests

4 participants