Jeff Sanders Technical Blog

I am a Microsoft employee that has worked on all aspects of the Web Stack for a long time. I hope these blogs are useful to you! Use this information at your own risk.


<< Go Back

Cannot Read Property Listregistrationsbytag Of Undefined Azure App Services

- 23 Feb 2017

Calling Register or RegisterAsync in the client code can result in a 400 status code coming back with an inner exception of: ‘Cannot read property ‘listRegistrationsByTag’ of undefined’

Problem:

You are creating a Mobile App or Azure App Services and setting up the push notifications for the first time

Cause:

The Portal blade does not set the Application Setting MS_NotificationHubName

Workaround:

Add MS_NotificationHubName in the Application settings.  The name will be the name of your Notification Hub.  It is the last item after the \ in the setting MS_NotificationHubId or you can get in from the notification Hub blade:

capture20170223080119644

 

capture20170223080212770

More information:

Once this is fixed the Portal Blade will set the MS_NotificationHubName for you when you walk through the Portal setup of Push notifications.  At that time I will update this Blog!  If you need further help, you can certainly open a support case through the Azure Portal.

<< Go Back