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

Android 14 (API level 34) Support - cannot find symbol nfcAdapter.setNdefPushMessage(msgToPush, currentActivity); #748

Open
marconioliveira opened this issue Sep 19, 2024 · 0 comments

Comments

@marconioliveira
Copy link

marconioliveira commented Sep 19, 2024

Hi everyone, Google Play Store is blocking updates for apps that are built below 34 API level. When changing the build level to 34, I'm getting the following build error:

`
/$APP_PATH/node_modules/react-native-nfc-manager/android/src/main/java/community/revteltech/nfc/NfcManager.java:967: error: cannot find symbol

                nfcAdapter.setNdefPushMessage(msgToPush, currentActivity);
                          ^

symbol: method setNdefPushMessage(NdefMessage,Activity)
location: variable nfcAdapter of type NfcAdapter
Note: /$APP_PATH/node_modules/react-native-nfc-manager/android/src/main/java/community/revteltech/nfc/NfcManager.java uses or overrides a deprecated API.`

NfcAdapter changes: https://developer.android.com/sdk/api_diff/34/changes/android.nfc.NfcAdapter`

Has anyone ever had this problem?

I don't have experience in native code, but if I find a solution, I'll post it here.

Thanks

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

1 participant