How to launch app using NFC tag on Windows Phone 8?

后端 未结 2 1745
星月不相逢
星月不相逢 2021-02-06 17:16

I got Windows Phone 8 device, few NDEF formatted NFC tags and I\'m wondering, is it possible to implement app launching on my WP8 using these tags? I\'ve read thoroughly this ar

2条回答
  •  清歌不尽
    2021-02-06 17:38

    Yes, you can launch any Windows Phone 8 app using an NFC tag. You need to put an NDEF message on the tag that has a LaunchApp record as the first record. Set the platform ID in the payload of the NDEF record to "WindowsPhone" and set the app ID to the hex string at the end of Windows Phone store URL between "{" and "}" For example, for http://www.windowsphone.com/en-us/store/app/stackoverflow-feeds/226fcc72-69ff-4a85-b945-cbb7f5ea00af to "{226fcc72-69ff-4a85-b945-cbb7f5ea00af}".

    This library can help to create such NDEF records. Limited documentation from MS is available here.

提交回复
热议问题