locked
Switch to App programatically RRS feed

  • Question

  • Is there any way to create my own button "Switch To App" instead of demanding the user to open the IE10 menu (ie10 appbar) then click/tap "Switch to App"?
    I gotta do it "programatically" using javascript..
    I want a button in my own website "CLICK HERE TO SWITCH TO THE APP" or "GO TO APP" not just put meta tags into <head> but i need to know how to trigger this "switch to app" event in javascript.
    Anyone?
    Thanks,

    Alan.
    Sunday, September 16, 2012 8:12 PM

Answers

  • You do this through protocol activation, see http://msdn.microsoft.com/en-us/library/windows/apps/hh452686.aspx for setting this up in the app. Basically you create a URI scheme for the app and launch that URI from a browser, which will then launch the app if it's installed.

    Of course, if the app is not installed, you'll get an error, but the meta tags you already know about should help the user find and install it.

    .Kraig

    • Proposed as answer by Dino He Monday, September 17, 2012 9:58 AM
    • Marked as answer by Alan - Tora Tora Monday, September 17, 2012 5:21 PM
    Monday, September 17, 2012 3:29 AM

All replies

  • Hi,

    I don't think that this is possible, because of the sandbox principle. If you want to share data between these two apps the share contract would be the best way.


    Best Regards. When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer. This helps us build a healthy and positive community.

    @Horizon_Net
    Blog

    Monday, September 17, 2012 12:13 AM
  • You do this through protocol activation, see http://msdn.microsoft.com/en-us/library/windows/apps/hh452686.aspx for setting this up in the app. Basically you create a URI scheme for the app and launch that URI from a browser, which will then launch the app if it's installed.

    Of course, if the app is not installed, you'll get an error, but the meta tags you already know about should help the user find and install it.

    .Kraig

    • Proposed as answer by Dino He Monday, September 17, 2012 9:58 AM
    • Marked as answer by Alan - Tora Tora Monday, September 17, 2012 5:21 PM
    Monday, September 17, 2012 3:29 AM
  • Are you kidding me? i hate when people just randomly answer questions to get points.. I WASN'T TALKING ABOUT FREAKING APPS.. it's about INTERNET EXPLORER button to link WEBPAGES to STORE.. jesus christ..  READ THE QUESTION BEFORE answering.. is that hard? 
    Monday, September 17, 2012 5:13 PM
  • Thank you very much Kraig..
    See! he READS the question and uses its BRAIN before writing an something...

    Alan.
    Monday, September 17, 2012 5:15 PM
  • Well, I've misread some on occasion too :) Sometimes you read a question but your brain misinterprets it, or misses a critical word, especially when people are accustomed in this forum to talking about apps. That's why the question about a site in IE is a bit of a broadside! In any case, do try to be forgiving and avoid yelling in posts here.

    Thanks

    .Kraig

    Monday, September 17, 2012 5:51 PM