chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
702 stars 545 forks source link

Android Api 34 error Android 14 #505

Open DalterioRaffaele opened 1 month ago

DalterioRaffaele commented 1 month ago

Removed Methods

void disableForegroundNdefPush(Activity) |  
void enableForegroundNdefPush(Activity, NdefMessage) |  
boolean invokeBeam(Activity) |  
boolean isNdefPushEnabled() |  
void setBeamPushUris(Uri[], Activity) |  
void setBeamPushUrisCallback(CreateBeamUrisCallback, Activity) |  
void setNdefPushMessage(NdefMessage, Activity) |  
void setNdefPushMessageCallback(CreateNdefMessageCallback, Activity) |  
void setOnNdefPushCompleteCallback(OnNdefPushCompleteCallback, Activity) |   Added Methods
NfcAntennaInfo [getNfcAntennaInfo](https://developer.android.com/reference/android/nfc/NfcAdapter.html#getNfcAntennaInfo())()

Error build android devices sdk 34

[cordova] nfcAdapter.setNdefPushMessage(p2pMessage, getActivity());
 [cordova] symbol: method setNdefPushMessage(NdefMessage,Activity)
 [cordova] location: variable nfcAdapter of type NfcAdapter
 [cordova] platforms/android/app/src/main/java/com/chariotsolutions/nfc/plugin/NfcPlugin.java:585: error: cannot find symbol
[cordova] } else if (!nfcAdapter.isNdefPushEnabled()) {
[cordova] ^
 [cordova] symbol: method isNdefPushEnabled()
[cordova] location: variable nfcAdapter of type NfcAdapter
 [cordova] platforms/android/app/src/main/java/com/chariotsolutions/nfc/plugin/NfcPlugin.java:588: error: cannot find symbol
 [cordova] nfcAdapter.setOnNdefPushCompleteCallback(NfcPlugin.this, getActivity());
[cordova] ^
[cordova] symbol: method setOnNdefPushCompleteCallback(NfcPlugin,Activity)
[cordova] location: variable nfcAdapter of type NfcAdapter
 [cordova] platforms/android/app/src/main/java/com/chariotsolutions/nfc/plugin/NfcPlugin.java:590: error: cannot find symbol
 [cordova] nfcAdapter.setBeamPushUris(uris, getActivity());
 [cordova] ^
[cordova] symbol: method setBeamPushUris(Uri[],Activity)
[cordova] location: variable nfcAdapter of type NfcAdapter
 [cordova] /platforms/android/app/src/main/java/com/chariotsolutions/nfc/plugin/NfcPlugin.java:611: error: cannot find symbol
 [cordova] } else if (!nfcAdapter.isNdefPushEnabled()) {
 [cordova] ^
[cordova] symbol: method isNdefPushEnabled()
[cordova] location: variable nfcAdapter of type NfcAdapter
 [cordova] platforms/android/app/src/main/java/com/chariotsolutions/nfc/plugin/NfcPlugin.java:614: error: cannot find symbol
[cordova] nfcAdapter.setNdefPushMessage(p2pMessage, getActivity());
 [cordova] symbol: method setNdefPushMessage(NdefMessage,Activity)
 [cordova] location: variable nfcAdapter of type NfcAdapter
 [cordova] platforms/android/app/src/main/java/com/chariotsolutions/nfc/plugin/NfcPlugin.java:615: error: cannot find symbol
 [cordova] nfcAdapter.setOnNdefPushCompleteCallback(NfcPlugin.this, getActivity());
[cordova] ^
 [cordova] symbol: method setOnNdefPushCompleteCallback(NfcPlugin,Activity)
 [cordova] location: variable nfcAdapter of type NfcAdapter
 [cordova] platforms/android/app/src/main/java/com/chariotsolutions/nfc/plugin/NfcPlugin.java:631: error: cannot find symbol
 [cordova] nfcAdapter.setNdefPushMessage(null, getActivity());
[cordova] ^
 [cordova] symbol: method setNdefPushMessage(,Activity)
[cordova] location: variable nfcAdapter of type NfcAdapter
 [cordova] platforms/android/app/src/main/java/com/chariotsolutions/nfc/plugin/NfcPlugin.java:643: error: cannot find symbol
 [cordova] nfcAdapter.setBeamPushUris(null, getActivity());
[cordova] ^
[cordova] symbol: method setBeamPushUris(,Activity)
 [cordova] location: variable nfcAdapter of type NfcAdapter
[cordova] Note: Some input files use or override a deprecated API.
 [cordova] Note: Recompile with -Xlint:deprecation for details.

PleahMaCaka commented 1 week ago

Same here, is there some solution?

Logan-Fidelitab commented 1 week ago

Same problem here, a patch would be highly appreciated ;)