Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
12
Question by DustyScreen · Apr 29, 2015 at 01:40 PM · iospush notification

Excluding Apple Push Notification API from iOS-build

I'm creating a game for iOS, testing it via Apple TestFlight (the new Apple-version of it).

The app doesn't use Push Notifications.

None the less, I'm getting the following email every time sending out a new build via TestFlight:

iTunes Connect: Your app "" (Apple ID: ) has one or more issues

Dear developer,

We have discovered one or more issues with your recent delivery for "". Your delivery was successful, but you may wish to correct the following issues in your next delivery:

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.

After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.

Regards,

The App Store team

This email goes out to every internal betatester on the entire iTunes Connect account! As we use it for different projects with different people, and to keep business partners updated as well, this is quite disastrous.

So the many post saying "Ignore it" doesn't apply here.

As I don't use Push Notifications, is it possible to exclude the Apple Push Notification API when building from Unity? Or comment out the parts of the code containing it after build? An postprocess maybe?

I would like to do something like this: https://unitycodes.wordpress.com/2015/02/06/missing-push-notification-entitlement/ - but I can't find all of the lines to comment out in the UnityAppController.mm-file... maybe the builder has been updated?

Any help - except "ignore it" ;-) - is most welcome!

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image illustir · Aug 31, 2015 at 12:45 PM 0
Share

You're right. This should be fixed.

avatar image Sitric · Oct 27, 2015 at 08:44 PM 1
Share

this is still happening - I suppose Apple isn't annoyed enough about it to make it actually fail the submission (though, per the above, is certainly still annoying to developers & testers).

3 Replies

· Add your reply
  • Sort: 
avatar image
10

Answer by aangelov · Mar 01, 2017 at 07:16 AM

This is in case someone is using Unity 5.5.1f1 or above: Once Unity generates the XCode project, open it up and navigate to Classes/Preprocessor.h file. There you should find following line of code: #define UNITY_USES_REMOTE_NOTIFICATIONS 1 set it this to: #define UNITY_USES_REMOTE_NOTIFICATIONS 0 That should do the job.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ddsinteractive · May 13, 2017 at 04:53 PM 0
Share

Excellent solution and we're happy Unity puts this somewhere to edit.

avatar image
6

Answer by Piotrku · Apr 02, 2016 at 11:26 AM

Please check out my plugin: https://www.assetstore.unity3d.com/en/#!/content/59160 which removes that warning after making your iOS builds.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Wolfram · Feb 24, 2016 at 11:22 AM

If you are actually using Push Notifications, recreate your provisioning profile: http://stackoverflow.com/questions/5719182/app-rejected-because-of-missing-push-notification-entitlement

If you do not use Push Notifications, see @Piotrku's answer.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

25 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Push Notification to start a scene 2 Answers

Problem in Register for remote notifications 0 Answers

Remote Notifications - Triggered by user or not 2 Answers

Enable Push Notification in XCode project by default? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges