Skip to content
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

Error System resource unavailable when attempting to write nfc tag on iOS #407

Closed
TheLazyHatGuy opened this issue May 13, 2020 · 3 comments

Comments

@TheLazyHatGuy
Copy link

I try to use the following code to write to an NFC tag on iOS

this.nfc.write(tagMessage).then(() => {
            this.readingTag = false;
            this.getLocation(tagUUID);
          }).catch((e) => {
            console.log('Then.Catch()');
            this.updateLoading(1);
            this.statusMessage = 'ERR: ' + e;
            this.readingTag = false;
            console.error('Write to tag error', e);
            this.nfcError(e);
            });

But every time I do I get the error [error] - ERROR Error: Uncaught (in promise): System resource unavailable\

@TheLazyHatGuy
Copy link
Author

TheLazyHatGuy commented May 13, 2020

I'm using an iPhone 7 on iOS 13 and ionic-native/NFC plugin 5.25.0 and phonegap-nfc 1.1.1

@don
Copy link
Member

don commented Jun 18, 2020

This works on my iPhone 7

    var message = [
        ndef.textRecord("Hello phonegap-nfc")
    ];

    nfc.write(
        message,
        success => console.log("Wrote Message"),
        error => console.log(error)
   );

@don
Copy link
Member

don commented Jul 9, 2020

Can't duplicate

@don don closed this as completed Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants