Lauch a metro style application using NFC RRS feed

  • Discussion générale

  • Dear all, 

    I want to lauch my own application using NFC interaction. 

    I am setting a tag using MIME type and I would like window8 to open my application when this kind of tag come up!

    Here is the code to write the tag : 

      byte[] Payload = { 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x61, 0x70, 0x70 };
       byte[] Id = { 0x7b, 0x41, 0x70, 0x70, 0x7d };
       var lauchapp = new NdefLaunchAppRecord{
                        Id = Id,
                        Payload = Payload,
                        TypeNameFormat = NdefRecord.TypeNameFormatType.Mime
       var lauchappmessage = new NdefMessage { lauchapp };
       mProximityDevice.PublishBinaryMessage("NDEF:WriteTag", lauchappmessage.ToByteArray().AsBuffer());

    I specify some extension on my manifest : 

            <Extension Category="windows.fileTypeAssociation">
              <FileTypeAssociation Name="nfctag">
                <EditFlags OpenIsSafe="true" />
                  <FileType ContentType="application/testapplication">.TNF</FileType>
            <Extension Category="windows.protocol" StartPage="MainPage">
          <Protocol Name="nfclauchapp" />

    I that way it should open my application but it doent!! 

    Do you have any solution to solve this issue? 


    • Type modifié Aurel Bera vendredi 21 décembre 2012 12:13 Pas de reponse
    mercredi 19 décembre 2012 10:53

Toutes les réponses