-
Notifications
You must be signed in to change notification settings - Fork 584
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
phonegap-nfc plugin causes error on startup on IOS #384
Comments
I too have this issue any advice, please? |
@alexdev888 How do you fixed this issue? |
The fix should be to make a weak reference to CoreNFC in plugin.xml. I haven't duplicated this yet, but pull request #395 should be the fix. |
@don how to use that pull request? |
To try a different branch, remove the existing plugin
Then install the version from the PR using the git URL
I managed to track down an iPhone SE so hopefully I'll be able to test this soon. |
I can not duplicate this.
If someone can duplicate this, please post details here. |
I am facing same issue during start up ... My platform details
Log
I verified my provisioning profile and NFC Tag Reading is enabled. Any help is highly appreciated ! |
@don is this pull request support WKWebView? Is this have every feature as current nfc plugin? |
@just4give you're seeing a different error maybe related to #363 |
@don thanks for sharing that. I installed that PR and now enabled() is working but beginSession does not seem to work. Not getting enough information in the log. Not sure if you can put some light on this?
Code
As error message does not indicate anything clearly , I am kind of lost where to go from here :( |
Fixed in #399 beginSession is deprecated. Use scanNdef instead since it returns a Promise. The Ionic wrapper isn't updated yet, so use |
Platform: Ionic + Capacitor + Angular
Target device: iPhone SE
When I run my app on iPhone after I install phonegap-nfc plugin the app crashes.
The idea is that iPhone SE has NFC only for payments.
I need at list app to start without error, but after installing NFC plugin I get this on compiling App in Xcode:
dyld`__abort_with_payload:
0x100902390 <+0>: mov x16, #0x209
0x100902394 <+4>: svc #0x80
-> 0x100902398 <+8>: b.lo 0x1009023b0 ; <+32>
0x10090239c <+12>: stp x29, x30, [sp, #-0x10]!
0x1009023a0 <+16>: mov x29, sp
0x1009023a4 <+20>: bl 0x1009017d0 ; cerror_nocancel
0x1009023a8 <+24>: mov sp, x29
0x1009023ac <+28>: ldp x29, x30, [sp], #0x10
0x1009023b0 <+32>: ret
How can I make this plugin to not be loaded if phone does not support NFC on IOS?
Any solution?
The text was updated successfully, but these errors were encountered: