3

We have implemented push notifications in our iOS app, and it seems to be working fine, regardless of whether we set the push notification capability on or off. So my question is: What does that capability controll? See screenshot for where we set the capability.

Thanks.

Claus

enter image description here

Cong Tran
  • 1,448
  • 14
  • 30
Claus
  • 51
  • 8
  • 1
    If you using/asking for push notification, you need to check it. It will work without it. But you will be rejected on binary upload for iTunes Connect. – Taier Dec 17 '15 at 10:32
  • On Xcode 7, it is determined by push settings in your AppID. On Xcode 8, it is determined by entitlement files. See http://stackoverflow.com/questions/39266891/xcode-8-push-notification-capabilities-and-entitlements-file-setting – onmyway133 Oct 03 '16 at 13:25

1 Answers1

0

If you don't add the entitlement, your app won't pass the AppStore submission.

An error similar to the following will appear (cf. this SO topic):

Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement.

Community
  • 1
  • 1
tilo
  • 14,009
  • 6
  • 68
  • 85
  • 1
    Strange, I submit my app with notification service without reject, I didn't turn on the Push Notification Capability. – ZYiOS May 06 '16 at 02:43