Works on 4.2.x but no other operating system
See original GitHub issueHi,
So I’ve gotten this snippet to work on an android phone (Galaxy S3 running 4.1.2):
nfc.addNdefListener (
function (nfcEvent) {
var text = document.querySelector('.writeEncoded'));
var link = ndef.textRecord(text);
nfc.write([link], function(){
alert('Success!');
},
function(){
alert('I\'m sorry, something went wrong, please try again');
}
);
},
function () {
alert("Waiting for NDEF tag");
},
function (error) {
alert("Error adding NDEF listener " + JSON.stringify(error));
}
);
For some reason it doesn’t work on a Samsung Galaxy Tab 4 running 5.0.2, it also doesn’t work on a Nexus 7 running either 4.4.4 or 5.1.
Other information: the alert for successfully adding the listener is called, but when I touch my nfc tags (mifare classic and mifare ultralight) to the reader it only gives me a response on the phone. I’ve tested the readers and tags on the tablets, other apps can interact with the same tags.
Any direction would be much appreciated. Thank you
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
V8.4.2.x Configuration Limits and Restrictions for IBM ...
Property Hardware Type Maximum Number
Control enclosures per system (cluster) FS5010/FS5015 1
Control enclosures per system (cluster) FS5030/F5035. FS5100 2
Control enclosures per system (cluster) FS5200...
Read more >OpenSTEP 4.2 Doesn't Run with 4 - VT-x may be the Problem?
OS 4.2 worked flawlessly under Pllels 3.x. However, in Pllels 4.0, VT-x is turned on by default and can't be turned off. OS...
Read more >Week 2 - 4.2.13 Quiz Results - Section Quiz Candidate: Date
Which operating system function has a steeper learning curve and can potentially break the system without careful use of its operations?
Read more >Cisco ACI Virtualization Guide, Release 4.2(x)
One has the attribute VM Name, and the other has Operating System. A VM might match both uSeg EPGs. By default, Cisco APIC...
Read more >Can't run electrum 4.2.0 on Windows 7 (api-ms-win-core-path ...
Yes, Electrum 4.1.5 runs on Windows 7 without any problems. I've tested this myself now. Documenting here for posterity. Testing with a fresh...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Here is the
logcat
result from the tablet running 4.4.4and the
logcat
from 4.2.2Also see https://github.com/chariotsolutions/phonegap-nfc/issues/249#issuecomment-236559032 for more CSP info