App store email about missing push notification entitlement - What should I do?

Hi guys i got the following email from apple after submitting my app.

"Missing Push Notification Entitlement  - Your app appears to include API used to register with the Apple Push Notification service, but the app signature’s entitlements do not include the “aps-environment” entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the “aps-environment” entitlement. See “Provisioning and Development” in the Local and Push Notification Programming Guide for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API."

I’m trying to remove the API reference to the push notifications since I don’t use them in my app but I don’t know where is this reference.

My build.settings look like this

-- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = { plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.ads.iads"] = { -- required publisherId = "com.coronalabs", }, }, orientation = { default = "landscapeLeft", supported = { "landscapeRight", } }, iphone = { plist = { CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-Small.png", "Icon-Small@2x.png" }, UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay UIApplicationExitsOnSuspend = false, -- uncomment to quit app on suspend --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXXXXXXX", -- example scheme for facebook "coronasdkapp", -- example second scheme } } } --]] } }, }

and my config file look like this:

if string.sub(system.getInfo("model"),1,4) == "iPad" then application = { content = { width = 360, height = 480, scale = "zoomStretch", xAlign = "center", yAlign = "center", fps = 60, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, } elseif string.sub(system.getInfo("model"),1,2) == "iP" and display.pixelHeight \> 960 then application = { content = { width = 320, height = 568, scale = "letterBox", xAlign = "center", yAlign = "center", fps = 60, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, } elseif string.sub(system.getInfo("model"),1,2) == "iP" then application = { content = { width = 320, height = 480, scale = "letterBox", xAlign = "center", yAlign = "center", fps = 60, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, } elseif display.pixelHeight / display.pixelWidth \> 1.72 then application = { content = { width = 320, height = 570, scale = "letterBox", xAlign = "center", yAlign = "center", fps = 60, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, } else application = { content = { width = 320, height = 512, scale = "letterBox", xAlign = "center", yAlign = "center", fps = 60, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, } end

Can someone tell me what to remove in order to fix this issue so i Dont get this email again

I think it’s a setting that is set when you create the provisioning profile in the Apple developer portal.  

I’m not sure if you can turn it off once it’s turned on, but if you can then simply:

  • Go to the developer portal
  • find the app id
  • Turn off push notifications
  • Rebuild the provisioning profile (you may need to click edit and then untick/tick some devices)

Then build the app with the new prov profile and the error message should go away.

Just ignore the email, it will make no difference for your app/game.

I think it’s a setting that is set when you create the provisioning profile in the Apple developer portal.  

I’m not sure if you can turn it off once it’s turned on, but if you can then simply:

  • Go to the developer portal
  • find the app id
  • Turn off push notifications
  • Rebuild the provisioning profile (you may need to click edit and then untick/tick some devices)

Then build the app with the new prov profile and the error message should go away.

Just ignore the email, it will make no difference for your app/game.