No Push Notification Capability in Xcode

空扰寡人 提交于 2019-12-04 02:44:46

问题


I don't know why, but the option Push Notifications of Capabilities in Xcode is not displayed. Why?

I follow the developer guides, creating cers, enabling push in provisiong profiles, etc.

I had refreshed the account in Xcode preferences. What I am doing wrong?


回答1:


You need a apple account not free,Please see the picture:




回答2:


Try checking all the following.

  • Make sure Push notifications is turned on under developer.apple.com.
  • If yes, then make sure you are running the same provisioning profile and certificate.
  • Also in Xcode, under Project -> General -> Select the qualifying team.

This should work.




回答3:


I was using the free developer's account and decided to upgrade to a paid 99 USD account. Because I was using free, the advanced capabilities did not display until I removed my account by clicking on the '-' and clicked on the '+' to re-add my account. Then all the capabilities appeared.




回答4:


I had this problem because my Apple Developer membership was expired. Renew it and you are good to go.




回答5:


This setting does not exist anymore. Just make sure that your App ID includes Push Notifications in the dev center.
Then, register for push notifications with

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
        (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];

and you should be good to go.




回答6:


Has Push Notifications of Capabilities in Xcode7



来源:https://stackoverflow.com/questions/30979218/no-push-notification-capability-in-xcode

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