如何在Windows Phone 8上使用NFC标签启动应用程序? [英] How to launch app using NFC tag on Windows Phone 8?

查看:189
本文介绍了如何在Windows Phone 8上使用NFC标签启动应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Windows Phone 8设备,几乎没有NDEF格式的NFC标签,我想知道,是否可以使用这些标签在WP8上实现应用启动?我已经彻底阅读了有关用于启动Windows Phone 8内置应用程序的URI方案,但我没有找到与实际启动第三方应用程序相关的任何链接.我可以启动各种设置屏幕,或浏览器,电子邮件,短信...

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 article about URI schemes for launching built-in apps for Windows Phone 8, but I haven't found any link related to actual launching of 3rd party apps. I can launch various settings screens, or browser, email, SMS...

更有趣的是,WP Store上至少有两个NFC标签可以编写用于启动应用程序的标签",我已经尝试过了,但是无法启动.

What is more interesting, that there are at least two NFC tags on WP Store that can "write tags for launching apps", I've tried them, but the launching is just not working.

所以问题是:是否可以在NFC标签上存储用于在WP8上启动任何第三方应用程序的信息?如果可以,这种URI方案的格式是什么?如何使用WP8将其写入标签?

So the question is: is it possible to store on NFC tag information for launching any 3rd party app on WP8? If yes, what is the format of such URI scheme and how to write it to a tag using WP8?

推荐答案

是的,您可以使用NFC标签启动任何Windows Phone 8应用.您需要在具有

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}".

此库可以帮助创建此类NDEF记录.可以在此处获得来自MS的有限文档.

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

这篇关于如何在Windows Phone 8上使用NFC标签启动应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆