You can register a callback with NfcAdapter.setOnNdefPushCompleteCallback(). It will be called when the transfer via Beam is successful.
How can I confirm my message was received using Android Beam?
-
31-03-2022 - |
Question
I'm having success creating an application which sends data through NFC/Android Beam. I am using setNdefPushMessageCallback
and wondered how I can detect once the recipient phone has received the message? At the moment, I'm struggling to differentiate between failed and successful beams!
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow