Test push notifications using Universal Windows App - azure

I have been using this MSDN tutorial (Tutorial: Send notifications to Universal Windows Platform apps using Azure Notification Hubs) to test the notification hub. The issue is it is asking me to create an app in Windows Store for which I need to register for Microsoft developer and it seems to be paid service. I'm trying to find an alternative here to get Package SID and Security Key for Windows (WNS) settings to register for an Azure Notification Hub. Please suggest.

The Windows Dev Center requires an account with a one time payment as specified on the Register to be an App Developer page.

Related

Azure notification hubs - Windows (WNS) error - Invalid WNS credentials

I am trying to setup Windows (WNS) notifications based on following Microsoft tutorial: Send notifications to Universal Windows Platform apps using Azure Notification Hubs
System returns error at step 3 in chapter Configure WNS settings for the hub. Relevant screenshots below.
I used fresh Package SID created yesterday. Also, security key was properly created; as defined in tutorial.
Error message:
Error updating notification hub. Error. BadRequest. Message: **Invalid WNS credentials**.
App registration in Azure is visible under - Applications from personal account.
On Partner Center portal I have active individual developer account that was used to register application (MSIX or PWA app) and get Package SID.
Followed all steps in tutorial. Triple checked everything. No other errors received. Account that I used to go through the tutorial has OWNER permissions on Azure subscription where Notification Hub is located. Security and access rights shouldn't be the problem.
Any thoughts where is the problem? And where can I find more details about actual error?
screenshot-ErrorMessage
screenshot-App registration
screenshot-IntegrationAssistantSuggestions
Found solution.
Package SID should be in the format: ms-app://S-x-xx-x-xxxxxxxxxxxxxx....
And not in the format S-x-xx-x-xxxxxxxxxxxxxx.... (this is how it looks in partner center portal)
Resolved.

Is the Azure notification hub available to use?

We are developing a website and would like to use the Azure portal notification module. Does anyone know what this is built with and if we could implement this on our site rather than building from scratch? We have some some processes that take some time so want users to be able to go off and do other things and come back when it's completed. We host our product on Azure so if this is using an Azure feature then we can use this also.
Azure Notification Hubs provide an easy-to-use and scaled-out push engine that allows you to send notifications to any platform (iOS, Android, Windows, Kindle, Baidu, etc.) from any backend (cloud or on-premises).
Push notifications are delivered through platform-specific infrastructures called Platform Notification Systems (PNSes). They offer barebone push functionalities to deliver a message to a device with a provided handle, and have no common interface. To send a notification to all customers across the Android, iOS, and Windows versions of an app, the developer must work with Apple Push Notification Service(APNS), Firebase Cloud Messaging(FCM), and Windows Notification Service(WNS) separately.
Kindly take a look at the documents to know how it works, scenarios you could leverage Azure Notification Hubs for and how to integrate with your app.
https://learn.microsoft.com/azure/notification-hubs/notification-hubs-push-notification-overview
https://learn.microsoft.com/azure/notification-hubs/notification-hubs-app-service
Do provide more details on your requirement for better assistance.
The question is tagged for Azure Notification Hubs, but the screen shot you showing is for the notification section of the Azure Portal UI. I'm not aware that Microsoft makes the component available for third-party use.
Can you please remove the Notification Hubs tag from this issue as it's not related.

Migrating Azure Mobile Service to AppService and swapping apns certificate

Our team has migrated from Azure Mobile Service to AppService and all works fine, except now we need to swap the APNS cert as it's reaching its expiry date.
According to this article: https://learn.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-migrating-from-mobile-services it has to be done manually in the file system.
Can someone explain how to do it, using the legacy push? Is it the FTP that I need to use? or maybe something else?
Can someone explain how to do it, using the legacy push?
Currently, the Mobile Apps feature of Azure App Service uses Azure Notification Hubs to send pushes,so we need to configurate the notification for the Appservice. The following is the detail steps:
1.In the azure portal,go to your app service and click [push]
2.Click connect to connect or add a notification hub source to the app
3.Click [Configure push notification services] to configurate push notification
services.
4.Upload the certificate
We also could get more info from the azure tutorials.
After some investigation I happily found an answer to this question and I thought it'd be good for others who don;t want to upgrade to NH to share it.
It's enough to go to App Service Editor -> App_Data and swap the certificate there. And this is really it. No need to go to Notification Hubs.
This isn't a Microsoft's recommened approach but it's safe for applications that are already in production state.

one Azure mobile service NotificationHub to send Push Notifications to Two Different IOS Apps

We are using Azure mobile service NODE back end as a server. We are using Notification Hub to push notify our iOS and Android clients. However, we have one more requirement to develop an admin portal app in iOS.
So,We are going to develop one separate app for Admin portal.This app also has requirement to send the Push notification. Means Azure mobile service will have to send Notifications to existing iOS and android app as well as this new iOS Admin app.
My doubt is, can I send push notification to two different clients of iOS from the single Azure mobile Services Notification Hub? Because when I checked PUSH configuration on the Azure portal it shows only one .p12 file upload provision.
In my case it will be two different .p12 files i.e. one is already uploaded for existing iOS client and one I will have to upload for iOS admin app.
Can some somebody help me or guide me to the right path? I am quite new the Azure mobile services. I searched a lot regarding this topic but did not get anything related to my scenario.
Will it be possible to send PUSH to two separate iOS clients which are pointing to same Azure Mobile Service Notification Hub? Or I will have to create separate mobile service for that?
You will need a separate Notification Hub for each app. You can keep your Mobile Service using the existing Notification Hub for your main app, and create a new Notification Hub for your admin app.
Then in your Node scripts for the admin app that need to register devices or send notifications, use the 'azure' npm to connect to the admin app Notification Hub, as described in this article. The Mobile Services Node backend already includes the azure npm, so you can skip running 'npm install azure'.
var azure = require('azure');
var notificationHubService = azure.createNotificationHubService('hubname','connectionstring');

Can one Azure Mobile Service push notifications to Windows 8 and Windows Phone 8 apps?

I have a Windows 8 app in the store that uses Azure Mobile Services to send push notifications. I'm working on a Windows Phone 8 version of the app now but I can't seem to get the Mobile service to push notifications to both platforms. This page suggests that it's possible.
When sending a push to Windows Phone I get this error "The cloud service is not authorized to send a notification to this URI even though they are authenticated."
If I remove the Package SID from the push settings of the Mobile service then pushing to Phone works but to the Windows 8 app doesn't.
Is this a scenario that's supported? Is there any sample demonstrating it?
thanks!
I am able to send notifications to both a Windows Store and WP8 apps that use the same backend Mobile Service. Can you share the code that you are using to send out the notifications to both platforms? The error message you are getting looks like the error message from the Windows Notification Service (http://msdn.microsoft.com/en-us/library/windows/apps/hh465435.aspx - see the Response Codes section), not the Microsoft Push (Phone) Notification Service.
Also, make sure that you have associated your app with the Store. Someone posted in the Azure Mobile Services forum with the same error message and this was the cause. http://social.msdn.microsoft.com/Forums/windowsazure/en-US/05b0ea71-f498-46bc-b6c0-16491b14ea99/error-in-push-notifications?forum=azuremobile
Note that the Package SID and Client Secret that you specify in the Azure portal (on the Push tab) only apply to Windows Store apps - Mobile Services does not currently support authenticated notifications for WP8.

Resources