|
Post by egghead on Jun 10, 2020 1:49:19 GMT
Just tested a rather silly app to push a text message from one Android phone to another using NFC. One is having Android Beam, but the other doesn't. Even with both NFC and Android Beam on, the pushed message isn't received by other phone when they're placed back to back, and even when I switch roles (sender/receiver) between the two.
So, for pushing content like a picture, I believe SNEP and Android Beam are required to be supported on both phones. But is it the same for text message push?
Further, is there a method in Rho to find out whether SNEP is supported in a phone's NFC chip?
|
|
|
Post by Dmitry Soldatenkov on Jun 10, 2020 18:21:56 GMT
Please specify what Rhodes version you use and what NFC API/extension you used ? Can you provide your app code (complete test app will be better) ?
|
|
|
Post by egghead on Jun 11, 2020 9:31:05 GMT
Too big. Shared in OneDrive : 1drv.ms/u/s!BHXAnEUS8j9fgpZYcwjZuljt_6pCmw?e=7bPPP3 Its a revisit of an old project, but I edited in RMS 7.2.2 Other than Rho NFC APIs no additional extension was used
|
|
|
Post by Dmitry Soldatenkov on Jun 12, 2020 0:51:37 GMT
Hm... Core looks workable. Our NFC extension was developed by me in 2011 year ;-) And we use not "Android Beam" but now deprecated NFC ability for send Message - developer.android.com/reference/android/nfc/NfcAdapter#enableForegroundNdefPush(android.app.Activity,%20android.nfc.NdefMessage) You can read by this link : "For NDEF push to function properly the other NFC device must support either NFC Forum's SNEP (Simple Ndef Exchange Protocol), or Android's "com.android.npp" (Ndef Push Protocol). This was optional on Gingerbread level Android NFC devices, but SNEP is mandatory on Ice-Cream-Sandwich and beyond." So as I understand SNEP must be supported on devices with Android 4.0.4 and later.
|
|
|
Post by Dmitry Soldatenkov on Jun 12, 2020 0:53:33 GMT
|
|
|
Post by egghead on Jun 12, 2020 1:11:12 GMT
Hm... Core looks workable. Our NFC extension was developed by me in 2011 year ;-) And we use not "Android Beam" but now deprecated NFC ability for send Message - developer.android.com/reference/android/nfc/NfcAdapter#enableForegroundNdefPush(android.app.Activity,%20android.nfc.NdefMessage) You can read by this link : "For NDEF push to function properly the other NFC device must support either NFC Forum's SNEP (Simple Ndef Exchange Protocol), or Android's "com.android.npp" (Ndef Push Protocol). This was optional on Gingerbread level Android NFC devices, but SNEP is mandatory on Ice-Cream-Sandwich and beyond." So as I understand SNEP must be supported on devices with Android 4.0.4 and later. Well, I'm pleased. You don't meet the core developer every day. Very educative post. Thank you. When was the send message deprecated? Year? Now I'm using one phone to emulate an NFC tag and letting other phone to scan the tag to try and find out about SNEP capabilities of "tagged" phone, but that's not ideal, IMHO. Any better way to do it? And while on NFC topic, kindly update documentation about API Reference. NDEF Manager is shown as unsupported in Android. Just a heads up.
|
|
|
Post by Dmitry Soldatenkov on Jun 12, 2020 1:29:00 GMT
|
|
|
Post by egghead on Jun 12, 2020 1:58:31 GMT
|
|