Glitch: Launching an app with a protocol causes unexpected behavior RRS feed

  • Question

  • I have one store app written in C#. it launches a protocol that I made up. I have another app in javascript that is setup to launch when the protocol is run. This functionality works fine, I click a button and the other app launches. The problem, is that the launched app now doesn't behave normally. Most of the functionality will work fine, however things like button links, and animations don't work.

    To reiterate:  If I launch the app from the start menu everything works fine, but when launched through a protocol some behaviors stop working. Does anyone have any ideas why this might be happening? 

    Thursday, November 1, 2012 9:43 PM


  • I found the solution! In case anyone else runs into something similar:

    The problem was that the javascript project was only running a chunk of code when the project was launched using this if statement:

      app.onactivated = function (args) {
           if (args.detail.kind === activation.ActivationKind.launch) {}
    So to fix this I just commented out that if statement. But if you wanted to be proper you could do an 
    || args.detail.kind === activation.ActivationKind.protocol

    Thursday, November 1, 2012 10:22 PM