title: WNS Notification : Channel URL incompatible with caller app
body: <p>I'm currently developping an mobile application based on Cordova (version 4.0.0) for Windows Phone 8.1.</p>
  
  <p>I implemented the Java code from API Java-WNS (from github of fernandospr) to send notification to my device.</p>
  
  <p>When I push the notification message to WNS, I get this error :</p>
  
  <pre><code>Client in-bound response
  403
  Strict-Transport-Security: max-age=31536000; includeSubDomains
  X-WNS-DEBUG-TRACE: DB5SCH101111133
  Date: Fri, 22 Jan 2016 10:44:55 GMT
  Content-Length: 0
  X-WNS-STATUS: dropped
  X-WNS-ERROR-DESCRIPTION: Channel URL incompatible with caller app
  X-WNS-MSG-ID: 6D850FC61AE7FDB5
  X-WNS-NOTIFICATIONSTATUS: dropped
  </code></pre>
  
  <p>Here's the different steps to configure my app to receive notifications :</p>
  
  <ul>
  <li>I registered my app from windows developper dashboard</li>
  <li>I have a SID package : ms-app://s-1-15-2-[...]-[...]-[...]-[...]-[...]-[...]-[...]-2403721117</li>
  <li>I have also my client secret like this (just an example) : Nk2C+pmadqcHNQR51lN6F7LGaJYUTRPb  </li>
  <li><p>This is my channel URI obtained from WNS : </p>
  
  <pre><code>https://db5.notify.windows.com/?token=AwYAAAD8sfbDrL9h7mN%2bmwlkSkQZCIfv4QKeu1hYRipj2zNvXaMi9ZAax%2f6CDfysyHp61STCO1pCFPt%2b9L4Jod72JhIcjDr8b2GxuUOBMTP%2b6%2bqxEfSB9iZfSATdZbdF7cJHSRA%3d
  </code></pre></li>
  <li><strong>Most important, I associated my app to windows store from Visual Studio</strong>. Then, package name, publisher display and publisher ID have been added to my appxmanifest.file</li>
  </ul>
  
  <p>Here's the appxmanifest.file (truely name "package.phone.appxmanifest from platforms/windows folder and cordova windows phone project) :</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest" xmlns:m3="http://schemas.microsoft.com/appx/2014/manifest" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"&gt;
      &lt;Identity Name="company-name.70**********2" Publisher="CN=02******-****-****-****-***********9" Version="1.1.0.0" /&gt;
      &lt;mp:PhoneIdentity PhoneProductId="06******-****-****-****-**********k" PhonePublisherId="s*******-****-****-****-***********5" /&gt;
      &lt;Properties&gt;
          &lt;DisplayName&gt;Demo Windows App Phone&lt;/DisplayName&gt;
          &lt;PublisherDisplayName&gt;My Company Name&lt;/PublisherDisplayName&gt;
          &lt;Logo&gt;images\StoreLogo.png&lt;/Logo&gt;
      &lt;/Properties&gt;
      &lt;Prerequisites&gt;
          &lt;OSMinVersion&gt;6.3.1&lt;/OSMinVersion&gt;
          &lt;OSMaxVersionTested&gt;6.3.1&lt;/OSMaxVersionTested&gt;
      &lt;/Prerequisites&gt;
      &lt;Resources&gt;
          &lt;Resource Language="x-generate" /&gt;
      &lt;/Resources&gt;
      &lt;Applications&gt;
          &lt;Application Id="com.company-name.demo" StartPage="www/index.html"&gt;
              &lt;m3:VisualElements BackgroundColor="transparent" Description="CordovaApp" DisplayName="Demo Windows App Phone" ForegroundText="light" Square150x150Logo="images\Square150x150Logo.png" Square44x44Logo="images\Square44x44Logo.png"&gt;
                  &lt;m3:DefaultTile Square71x71Logo="images\Square71x71Logo.png" Wide310x150Logo="images\Wide310x150Logo.png"&gt;
                      &lt;m3:ShowNameOnTiles&gt;
                          &lt;m3:ShowOn Tile="square150x150Logo" /&gt;
                          &lt;m3:ShowOn Tile="wide310x150Logo" /&gt;
                      &lt;/m3:ShowNameOnTiles&gt;
                  &lt;/m3:DefaultTile&gt;
                  &lt;m3:SplashScreen Image="images\SplashScreenPhone.png" /&gt;
              &lt;/m3:VisualElements&gt;
              &lt;ApplicationContentUriRules&gt;
                  &lt;Rule Match="https://dev.company-name.fr/demo-windows-app/*" Type="include" /&gt;
              &lt;/ApplicationContentUriRules&gt;
          &lt;/Application&gt;
      &lt;/Applications&gt;
      &lt;Capabilities&gt;
          &lt;Capability Name="internetClientServer" /&gt;
          &lt;DeviceCapability Name="webcam" /&gt;
          &lt;DeviceCapability Name="microphone" /&gt;
      &lt;/Capabilities&gt;
  &lt;/Package&gt;
  </code></pre>
  
  <p>From server side, I use the authentification to WNS with two parameters :</p>
  
  <ul>
  <li>SID package </li>
  <li>Client secret password</li>
  </ul>
  
  <p><strong>I checked differents topics about this error and the most of the useful answer is to associate the app to windows store. But I always did it and I don't work for me.</strong></p>
  
  <p>If I understand well, WNS platform just need to know the ID App (SID package) to find my app and to send notification to my app. I don't need to deploy my app through the windows store.</p>
  
  <p>Do you have an idea about how to fix it ? Do you think I forget something or do a mistake ?</p>
  
  <p>EDIT :</p>
  
  <p><strong>I'm thinking I find the problem ! I'm working on it and when I'll resolve my problem, I'll come back here to post my solution.</strong> </p>