简体   繁体   中英

Launch Unpublished WP8 app via NFC

I am attempting to test launch my app that I am writting via NFC with windows phone 8.

According to the documentation I have seen, in order to do this you need the app ID.

From my experience you only get an app ID after you publish an app.

So that brings me to the question.

How do I launch an app via NFC tag that I programmed without knowledge of the App ID before hand?

There is another way to launch apps with NFC via URI association. You can register your app for an URI association, and it will be launched when receives a message with a URI of the registered protocol.

For example you can register the protocol myapp , by adding following code to the WMAppManifest.xml file:

<Extensions>
  <Protocol Name="myapp" NavUriFragment="encodedLaunchUri=%s" TaskID="_default" />
</Extensions>

That way, if the device receives a message with the URI myapp:something , the app will be started. This also allows the app to be launched from other app.

Find more information here .

If you still prefer the appID approach, for testing purposes you can use the Product ID property from WMAppManifest.xml , but note that it will replaced by other ID when published.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM