I am trying to read the "ndef" records on an NFC Card (I have 2 Cards and an NFC Ring with 2 Tags inbuilt. So 4 in total). I have the following code:
Code: Select all
on openStack
get mobileIsNFCEnabled()
if mobileIsNFCEnabled() is "true" then
answer "Device NFC has been turned on"
end if
get mobileIsNFCAvailable()
if mobileIsNFCAvailable() is "true" then
answer "NFC tags can be read"
end if
mobileEnableNFCDispatch
end openStack
on nfcTagReceived pTag
put pTag["id"] into tID
put pTag["ndef"]["payload"] into tData
answer tID
answer tData
end nfcTagReceived
I have tried writing many different changes with NFC Writing Apps in the Google Play Store on my Android device with no luck...
Am I doing something wrong with my above code? Any help is greatly appreciated!!
Many Thanks,
Googie.