Windows Store app, Azure, WNS and Windows account integration

Copper Contributor

Hi,

 

I have been building Windows apps for many years for enterprises, but now I am asked to integratie push notification functionality. Here I struggle with the whole integration of components. Let me explain the target solution.

 

Within our company we have build a framework which we use for customer projects. This framework is basically a core UWP application. On top of this, we add customer specific views. Each customer project will lead to a unique application with a unique package name. The application already uses Azure AD for employee authentication in order to receive and send data. The application is never submitted to the Windows Store, but distributed using the MDM tool our customers have selected.

 

Now with push notifications (WNS), we need to register the application in the Windows store, so we get a package ID needed to configure WNS. And here the struggle begins.

 

1. I cannot create a Windows developer center account with the office365 account I use at my company. The dev center website told me I had to use a personal MS account. So I used a personal Microsoft account for this. With this new account I was able to register the application to the Windows Store (app name reservation) and I saw the app registration in the Azure portal (of my personal dev center account).

 

2. But I didn't see an option to link our application to our company Azure portal and this is part of our infrastructure where we (my fellow developer colleagues and me) want to test the solution.

 

3. When configuring WNS in (my personal) Azure portal, I got an error stating the WNS credentials are invalid. The Package SID was supplied in the manner described by the documentation (ms-app://<Package SID>) and the secret value had been created and added as well. Documentation nor other sources had a solution for this.

 

4. This is only the struggle I have for our own developments, but how will this work once we want to roll out push notifications to one of our customers. As they will have their specific version of the application, with their own package name and with the required to use their own Azure portal, does the customer have to create a windows dev center account themselves? And if they cannot create such account using the company's office365 accounts, how will they be able to have WNS set up without using personal portals?

 

I hope this uphill battle is described in a clear way. If not, please let me know where clarification is needed. At this moment we have halted push notification implementation and we really want to continue.

 

Mike

 

 

 

 

4 Replies
I have a similar problem. For existing app in Partner Center, I'm not able to configure WNS with the same error: WNS credentials are invalid.

@michalleptuch I find the WNS configuration quite buggy even though its just two input fields. When you have entered the correct data and it is working, try not to change it ever, because it will give you the invalid credentials errors forever, even if you change it back to the correct data. The only way I could solve it, was by deleting the app registration and starting over again.

One thing is clear so far: the only way to link the company's tenant to the personal tenant is by making the association. After that, any registered app that needs to use WNS via the company's tenant need to be deleted (logged in via the personal account) and re-registered (logged in via the company's account).

Now UWP in the company's tenant can be configured using the package SID of the application.

I am able to register the application for push notifications now, but sending test PN leads to two possible errors: "The token obtained from the Token Provider is wrong" or another error I don't have the exact text of atm.
My problem is more complicated. I migrated my apps from personal developer account to business one, and now all migrated apps have the same error. I can't connect them in Azure portal. I can't delete these apps from Partner Center because my clients use these apps for years 😞