How to disable the push notification function in an xcode project?

I use a free Apple developer account, so push notification support is not supported. So when I get an existing xcode project and try to run it on my phone, I get: "Your development team" xxx "does not support the Push Notifications feature."

But when I go to the “Features” tab, I don’t see it there to disable it (he said “10 features are not available”). So, I think it hides them? But the project still needs opportunities somewhere?

So, how do I disable the push notification features for a project, so I can run it?

+5
source share
2 answers

enter image description here Open YourAppName.entitlements and delete

<key>aps-environment</key> 
+6
source

UPDATE: Thanks to KerimGökarslan for reminding that someone does not see the possibility of push notifications.

If your developer account does not have push notifications, you must clear the current profile and certificate. Then you can disable it on the features tab.

enter image description here

Select the tab of your target’s capabilities and turn off what you want. Make sure that the configuration of each target is changed.

enter image description here

+3
source

Source: https://habr.com/ru/post/1268870/


All Articles