-
Notifications
You must be signed in to change notification settings - Fork 574
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
Ionic capacitor targetsdk 33 app crash with plugin is installed without nfc plugin work works ok #490
Comments
@adeel399 you can use my Cordova plugin which forked from here and maintained |
So there crashing issue on andoid 12 or above is resolved in that and also the issue plugin not working if we resolve crashing issue |
I am using capacitor so how i can use that |
let flags = this.nfc.FLAG_READER_NFC_A | this.nfc.FLAG_READER_NFC_V;
|
@adeel399 in capacitor you can use cordova plugins |
It worked but not for android 13 |
@adeel399 you mean that from Android 13 you cannot add Cordova plugins? or the plugin is not working from Android 13? remove the NFC plugin and add this:
it is a maintained plugin |
I used that npx sync etc before it was not working on android 12 either but now its worked but on android 13 still issue i ll send u error |
I'm here for the same reason, I'm testing on Android 12. App closes. |
It gives alert of nfc avilable but on clicking read button nothing shows i have also added alert on error |
@sonikdesign @adeel399 did you try the plugin community-cordova-plugin-nfc ? |
Hi Eyalin I'm tring right now |
Yes i did i can send u apk if u have android 13 u can check it |
@adeel399 great. what is the error in logcat? |
Nothing shows |
the app cannot crash without anything in the logcat |
@EYALIN your plugin works great on a device with Android 12 (OPPO A16s). I'm converting an app for Android from Cordova-Android 8.1.0 to 12.0.0. Target Android 13 (API level 33) is around the corner. Phonegap-nfc crashes the app with this new Cordova setup. Now I can read again nfc tags. In the next few hours I hope to test iOS too. |
@sonikdesign sound great. follow my plugin so you will be notified on any change. @adeel399 i think that maybe you didn't install it correctly ? |
I did install it correctly and for my client its working bcoz he has android 12 but same app on my phone which is android 13 showing nothing , |
@adeel399 if an app is crashing you must have exception in logcat, please try to track it |
Hi @EYALIN, I also have this problem with my Android 13 app with IONIC v6. The application crashes during the NFC scan. I installed your forked community-cordova-plugin-nfc plugin, but I still have the same problem; a SecurityException is thrown. Here's what I see in the logcat:
Does this remind you of anything by any chance? Thanks in advance PS : @adeel399 did you finally find a solution for your issue ? |
Yeah on android side mine is resolve ios stil having issue which @EYALIN working i think on |
Great news So no more crash on Android 13 for you ? you just installed community-cordova-plugin-nfc? nothing more? Were you able to see in your logcat if the same exception was raised? Thank you for your responsiveness @adeel399 ! |
Yup , i never see that exception |
@adeel399 sorry for the delay, i was out of work for a while. |
@EYALIN @adeel399 I am using the older version of PhoneGap with capacitor and just wondering how to install your version I have tried npm install community-cordova-plugin-nfc which installed the package but I can't seem to get access to NFC as it says modules dont exist. Any steps that I can follow to see if this resolves the issue? My issue is on Android ISO15693 pops out the tag id in reverse to a nfc pen I have and Apple products. I want to see if this resolves the issue? |
+1 having the same issue |
Hi @quiots , Did you find any solution for the issue or the exception that is thrown. That is resulting in app crash when the app is launched using nfc chip. |
No description provided.
The text was updated successfully, but these errors were encountered: