question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UIDs with iOS13 and Ionic Cordova

See original GitHub issue

Hi, tried to create an ios-ionic-cordova app to simply read out an UID from an NFC Chip using this Code:

iosNfcButton.addEventListener('click', function() {
  thisNFC.beginSession((data) => {},
    (err) => {}
      ).subscribe((event) => {
        thisNFC.addNdefListener(() => {
          console.log('connected ndef listener?!')
        }, (err) => {
          console.log('error attaching ndef listener', err);
        }).subscribe((event) => {
         alert(JSON.stringify(event))
        }
      });
    })
  })
});

Baiscally just alert anything from the event in JSON so I can read it without a console. What I got back was:

{
  "isTrusted":false,
    "tag":{
      "ndefMessage":[{
        "tnf": 1,
        "id": [],
        "payload": [33,23,23,2,3],
        "type": [85]
     }]	
  }
}

As you can see the ID is empty. Is there any way I can access this now or maybe in future releases?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
Patrick-89commented, Dec 6, 2019

Hello together. Thank you all for your great work. We are really happy to use your work daily.

But we need to read out the UID of the NFC Chips. But this is now not possible. Do you have any Idea how this app had solved the issue about scanning out the UID? https://apps.apple.com/de/app/nfc-tools/id1252962749

Or what is missing in the Cordova plugin in order to read out the NFC UID?

Thank you.

2reactions
vupttcommented, Nov 7, 2019

@don I just created a forked repo to return the uid, can you check it out and add this feature. Thanks

https://github.com/vuptt/phonegap-nfc

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uid - Ionic Native
Get unique identifiers: UUID, IMEI, IMSI, ICCID and MAC. Repo: https://github.com/lionelhe/cordova-plugin-uid. Installation. Install the Cordova and Ionic ...
Read more >
Ionic Email Composer Plugin Not Working for iOS 13+ ...
I am using Ionic's Email Composer Plugin for Cordova. ... subject: 'Reporting User ' + uid, body: 'Message: ' + message + '/n/r'...
Read more >
My App is getting stuck on Splash Screen in iOS 13 · Issue #680
Ionic cordova App is working fine with iOS< 13 and all the androids. But after updating to iOS 13, It is getting stuck...
Read more >
"Xcode couldn't find a provisionin… | Apple Developer Forums
I am trying to test an ionic app on an iPhone but I don't have a developer account. I tried following all the...
Read more >
FullStory for Mobile Apps Release Notes
iOS: 13 - 15. FullStory may be included with apps targeting iOS 9+; FullStory will capture sessions on iOS 13 - 15. New...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found