0
votes

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://docs.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?

2

2 Answers

1
votes

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.

enter image description here

4.Upload the certificate

enter image description here

We also could get more info from the azure tutorials.

1
votes

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.