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

NDEF_PUSH_DISABLED Android 11 Android Beam is removed, no setting page to allow permission #456

Open
clarklight opened this issue Sep 13, 2021 · 3 comments

Comments

@clarklight
Copy link

clarklight commented Sep 13, 2021

I am trying to use the .share() function, but in the error callback it is showing NDEF_PUSH_DISABLED.

Do i need to set anything in the config to enable this?
As Android Beam is removed, there is no more setting page for me to enable this setting in the device or popup to ask user for permission.

I am building on Cordova android 10.0.1 testing on Android 11 device.

Thanks!

@clarklight clarklight changed the title NDEF_PUSH_DISABLED Cordova android 10.0.1 Android 11 NDEF_PUSH_DISABLED Cordova android 10.0.1 Android 11 Android Beam is removed, no setting page Sep 13, 2021
@clarklight clarklight changed the title NDEF_PUSH_DISABLED Cordova android 10.0.1 Android 11 Android Beam is removed, no setting page NDEF_PUSH_DISABLED Android 11 Android Beam is removed, no setting page to allow NDEF Sep 13, 2021
@clarklight clarklight changed the title NDEF_PUSH_DISABLED Android 11 Android Beam is removed, no setting page to allow NDEF NDEF_PUSH_DISABLED Android 11 Android Beam is removed, no setting page to allow permission Sep 13, 2021
@clarklight
Copy link
Author

For anyone facing this issue, this will save you sometime. After API level 29, the feature is deprecated, and they are slowing moving away from NDEF file transfer method.

https://developer.android.com/reference/android/nfc/NfcAdapter

boolean | isNdefPushEnabled()This method was deprecated in API level 29. this feature is deprecated. File sharing can work using other technology like Bluetooth.

@SamuelMichelRiad
Copy link

Any workarounds?

@clarklight
Copy link
Author

clarklight commented May 24, 2022

@SamuelMichelRiad In that documentation, they suggest people to switch over to use Bluetooth for data transfer. Which was the work around i did in the end. If you thinking of using the NFC for pushing data to a NFC card etc should still works fine. But beaming between 2 devices, that needs to be transfer to bluetooth which should be able to perform 100% the same functionality.

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

No branches or pull requests

2 participants