10

I'm trying to enable push notification in Xcode 11.0 . I have added push notifications form + capability but enable or disable button is not there.

screenshot of capabilities

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Suresh Rewar
  • 117
  • 1
  • 1
  • 6

4 Answers4

15

For Xcode v11.2.1 at least the button to add capabilities is in the upper left corner. Once you add a new capabilitiy it's enabled by default. To disable, you delete the capability. See Screenshot for a little more detail. Capability SS

ballercoder1
  • 159
  • 6
  • After struggling a lot with push notifications not arriving and neither official documentation of several apps and examples says how to add the push notification capability this did the trick. Thanks for sharing. – VicM Apr 22 '20 at 17:03
8

In Xcode 11 or above update some many things. For push notification enable and disable check the attack screen short.

On top Upper corner click on capability:

On top Upper corner click on capability

push notification when you click then automatically enable:

The other pic show push notification when you click then automatically enable

if you want disable then -> TARGETS -> Signing & Capabilities and scroll down click on cross for disable

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Tayyab Raza
  • 81
  • 1
  • 1
6

Strange but push notification is not listed for me. - Tejas K

Me too! This is another Xcode bug I have found. You can workaround it by unchecking and rechecking the Automatically manage signing box, you should see a longer list of capabilities now:

Image of capabilities pop up

Ben Butterworth
  • 22,056
  • 10
  • 114
  • 167
  • Push Notification is Not Showing Me Till Now. I have applied your solution multiple times. Kindly help with this. – Jay Tillu Dec 08 '22 at 02:51
2

https://help.apple.com/developer-account/#/dev21218dfd6

If you guys got trouble with App Capabilities and got missed/can't find Push Notification, there is related link that show limitation between free and paid Apple Developer Account.

In summaries Free Account didn’t get push notification support capability. Update your Apple Dev Account! Cheerss!

Slamet Riyadi
  • 203
  • 1
  • 2
  • 6