How to configure Azure Notification Hub to use APNS token authentication mode?

允我心安 提交于 2019-12-10 15:24:37

问题


I am trying to add APNS connection in Azure Notification Hub with Token as authentication mode.

I have searched around but I am not able to find any guides anywhere to make this work.

Maybe someone has a link to a guide showing how to find the information needed?

I tried to create a "APNs Auth Key" in Apple developer console, but that gives me a .p8 file and the token inside that file does not seem to be accepted, so I guess I need to find the token somewhere else.

I hope someone have a link to a guide for setting this up and find the information needed.


回答1:


Update (Apr 2018): @Krumelur reports in the comments that the blog article is out of date. Check out his suggestion on how to fix it to avoid getting errors.


Update (June 2017): There is now an official Microsoft post about Token-based (HTTP/2) Authentication for APNS.


Original answer (May 2017):

Token Based Authentication and HTTP/2 Example with APNS is a good step by step guide of how to get those values from your Apple Developer Account.

  • Key ID in Azure Portal is what APNS_KEY_ID is in the sample above
  • App Name in Azure Portal is your app name
  • App ID in Azure Portal is what TEAM_ID is in the sample above
  • Token in Azure Portal is the contents of the file referred to in APNS_AUTH_KEY variable in the sample above

Do not forget to keep track which keys and tokens are sandbox and which are production endpoint ones.




回答2:


Looks like this is out of date. It is now looking for

Key ID Bundle ID Team ID Token



来源:https://stackoverflow.com/questions/43870529/how-to-configure-azure-notification-hub-to-use-apns-token-authentication-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!