Hackathon version highly unstable release of the hackathon result.
An Android app to exchange contact information using NFC. Using the app strongly encourages you to send a vCard in both directions, rather than using Android Beam to share one contact at a time.
- Alice opens the application.
- Alice picks a card they want to share.
- Alice and Bob tap their phones (NFC).
- Bob receives Alice's vCard as well as a request to choose a response card.
- Bob picks a card they want to respond with.
- Alice and Bob tap their phones (NFC).
- Alice opens the application.
- Alice picks a card they want to share.
- Alice and Bob tap their phones (NFC).
- Bob receives Alice's vCard as well as a request to choose a response card.
- Bob picks a card they want to respond with.
- Bob sends a POST request to the online service that will broker the reply.
- Alice receives a Google Push message to their application from the online service.
- Alice opens the application.
- Alice picks a card they want to share.
- Alice and Bob tap their phones (NFC).
- Bob receives Alice's vCard as well as a request to choose a response card.
- Bob cancels or does not pick a reply.
- Alice's phone will show the transaction has expired without a response card.
- Alice opens the application.
- Alice picks a card they want to share.
- Alice and Bob tap their phones (NFC).
- Bob's phone shows the application in the Play Store to install it.
- After Bob has completed the installation they restart the process.
This mime-type is used to trigger a handshake. It can be used in two ways:
- Empty body, forces an NFC/Offline reply.
- URL-encoded information will provide instructions on how to send a response through an online service that will act as the message broker.
For option 2, the fields are:
- broker_post_url - HTTP(S) URL where to send the response.
- sender_id - An ID for the broker online service to know who to forward the message to.
- transaction_key - A (random) key for the sender to verify the response received from the broker.