Cross-Platform LaunchApp Tag

Apr 2, 2014 at 3:27 AM
Hi,

I am trying to figure out the syntax to write a combined NDEF Message to include a windows app call and also a URI record call.

Windows App Sample:

myapp://123

URI Record Sample:

http://domain.com

I have been trying the following without any success:

Uri = "myapp://123,http://domain.com"

where "," is the separator I used to concatenate both records but did not work. I used other delimiters without any success. Does anyone knows a way around this? Thanks a lot.
Coordinator
Apr 5, 2014 at 6:27 PM
What did you intend to achieve / what did not work the way you expected?

A few things to keep in mind:
  1. You can add two URI records to the NDEF message, which would be the standard way to include two different URLs on a tag
  2. However, Windows / Windows Phone only take a look at the first record, so it would not act on the second record. When your app is launched through the first URL record, it only gets the contents of the first record, not the complete NDEF message on the tag.
  3. When auto-launching your app through a custom URI scheme, make sure the payload only contains legal URI characters; binary data or other non-URL-encoded data will be filtered out by Windows and you will not get that.
Apr 7, 2014 at 2:42 AM
Hi Mopius,

Thanks for your reply. I am trying to create a cross-platform LaunchApp Tag with a NDEF Message that includes a call to a Windows app and also a generic URL.
I read the information at Microsoft regarding this, (http://social.technet.microsoft.com/wiki/contents/articles/13955.how-to-create-cross-platform-launchapp-nfc-tags.aspx) and they recommend to use the NDEF library for Proximity API. My problem is that I do not know the syntax on how to include 2 records in the NDEF message, one for the windows app and one for the generic URL.

So as stated earlier, I can write a tag with a call to a windows app like:

myapp://123

and that will open the 123 app when I tap the phone to the tag on a windows device (if the app is installed, otherwise it will do a search on the store).

And I can also write a tag to open a URL:

http://domain.com

What is the syntax to write a NDEF message that will include BOTH, the windows app call and a generic URL?

Do you know what I mean?

Thanks