Answered by:
nfc peerfinder class

Question
-
Dear all,
I have a doubt on peerfinder class.
I have deployed my app on two machines having NFC enabled. I am calling peerfinder.start("my_own_message"); I launched app on one machine and tapped the other machine.
Then windows showed a popup, "you are invited would you like to launch the app?",
After I clicked ok, it is just lanching the similar app on other machine
but I have not received the message sent above by calling peerfinder.start("my_own_message");
How to receive the message sent by peer app by calling peerfinder.start("my_own_message");
- Moved by Rob Caplan [MSFT]Microsoft employee, Moderator Friday, March 9, 2012 12:49 AM (From:Building Metro style apps with C# or VB )
Wednesday, March 7, 2012 5:07 AM
Answers
-
Hi Kelvy,
Is your app subscribing to your message?
What is your app trying to do with the message? How are the two apps intended to interact?
--Rob
- Marked as answer by Eric Hanson-MSFTModerator Wednesday, June 6, 2012 5:15 AM
Friday, March 9, 2012 5:40 AMModerator -
Kelvy,
Try having your app subscribe to your message.
Best Wishes - Eric
- Marked as answer by Eric Hanson-MSFTModerator Wednesday, June 6, 2012 5:15 AM
Wednesday, June 6, 2012 5:15 AMModerator -
The information appears in the start-up parameters on the app launched automatically on the second machine.
http://www.alanjmcf.me.uk/ Please follow-up in the newsgroup. If I help, please vote and/or mark the question answered. Available for contract programming.
- Marked as answer by Eric Hanson-MSFTModerator Wednesday, June 6, 2012 6:54 PM
Wednesday, June 6, 2012 1:22 PM -
You need to handle the application activated event and get the message out of the LaunchActivatedEventArgs. The Proximity sample shows how to check this: http://code.msdn.microsoft.com/windowsapps/Proximity-Sample-88129731
- Marked as answer by Eric Hanson-MSFTModerator Thursday, June 21, 2012 3:38 AM
Thursday, June 21, 2012 1:19 AM
All replies
-
Hi Kelvy,
Is your app subscribing to your message?
What is your app trying to do with the message? How are the two apps intended to interact?
--Rob
- Marked as answer by Eric Hanson-MSFTModerator Wednesday, June 6, 2012 5:15 AM
Friday, March 9, 2012 5:40 AMModerator -
Kelvy,
Try having your app subscribe to your message.
Best Wishes - Eric
- Marked as answer by Eric Hanson-MSFTModerator Wednesday, June 6, 2012 5:15 AM
Wednesday, June 6, 2012 5:15 AMModerator -
The information appears in the start-up parameters on the app launched automatically on the second machine.
http://www.alanjmcf.me.uk/ Please follow-up in the newsgroup. If I help, please vote and/or mark the question answered. Available for contract programming.
- Marked as answer by Eric Hanson-MSFTModerator Wednesday, June 6, 2012 6:54 PM
Wednesday, June 6, 2012 1:22 PM -
You need to handle the application activated event and get the message out of the LaunchActivatedEventArgs. The Proximity sample shows how to check this: http://code.msdn.microsoft.com/windowsapps/Proximity-Sample-88129731
- Marked as answer by Eric Hanson-MSFTModerator Thursday, June 21, 2012 3:38 AM
Thursday, June 21, 2012 1:19 AM