chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
718 stars 575 forks source link

Android Api 34 error Android 14 #504

Closed rdalterioalmaviva closed 7 months ago

rdalterioalmaviva commented 8 months 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

error: cannot find symbol [cordova] nfcAdapter.setNdefPushMessage(p2pMessage, getActivity()); [cordova] ^ [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] ^ [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.