How to enable push notification in Xcode 11?

Viewed 12698

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

4 Answers

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

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

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

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!

Related