x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Missing "aps-environment" Entitlement

I've been pushing to the App Store, for the most part everything works fine; except I get a nasty-gram from Apple saying that...

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

1) I've configured the Apple side of things by creating SSL certificates and enabling my app for push notifications.

alt text 2) I've downloaded the new mobile provision for my app (that now includes the push notifications enabled).

3) I've imported the new mobile provisions using XCode ==> Preferences ==> Accounts

4) I've imported the new mobile provisions using Unreal ==> Project Settings ==> iOS ==> Import Provision

Things build fine, upload to "store" (where I can run it using TestFlight). But the nasty-gram persists... and I'm anticipating being rejected from the app store upon submission.

I'm building a project which has a mix of C++ and Blueprints, on a Mac with XCode. And for the Mac, I'm building with full Unreal source.

Question: How can I add the 'aps-environment' entitlement to my app?

5) I've tried updating "IOS/Intermediate/MyApp.entitlements" but the Unreal builder regenerates this file; overwriting my changes.

6) I've also tried including "bSupportsPushNotifications=True" in "Config/IOS/IOSEngine.ini"

I must be missing something, but docs are hard to find re push notifications for Unreal. Please help! This is a major blocker!

Product Version: UE 4.14
Tags:
more ▼

asked Jan 09 '17 at 11:43 PM in Packaging & Deployment

avatar image

Jason Powell
41 2 4 5

avatar image Steve Hardister ♦♦ STAFF Jan 12 '17 at 06:00 PM

Hi Jason Powell,

Make sure you are completely deleting the old Certs and Provisions that were created before including Push Notifications by deleting them from your KeyChain. I recommend doing a search and making sure they are completely deleted from your system, including deleting your new Certs and Provisions that include Push Notifications.

Once you are sure all remnants of the old Certs and Provisions are removed, re-download the Certs and Provisions that you generated after configuring the app ID for push. Let me know if this does not resolve your issue.

Steve H.

avatar image ash22 Mar 08 '17 at 07:19 PM

Hi Steve,

I received the same message from Apple for my submission just now.

I am using 4.13.2. (I can't upload to a later version because I need to support iOS7.0 for the current release).

Is there an official solution to this Missing "aps-environment" Entitlement issue?

"Make sure you are completely deleting the old Certs and Provisions that were created before including Push Notifications by deleting them from your KeyChain."

I started my project in 4.12.

When were iOS push notifications added to UE4?

If it was before 4.12 then I don't think the 'delete old provisions/certs' exercise will make a difference.

Cheers.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first

I hadn't tried Steve's method... only because I hacked at it a bit and got it working before this answer. Here's what I did...

There's a file that's generated sometime early on during your project (not every build)... Intermediate/ProjectFilesIOS/build/YourApp.build/ShippingIphoneOS/YourAppBuild/YourApp.app.xcent

In there, there is some XML-ish key/value pairs. I added...

   <key>aps-environment</key>
   <string>production</string>

Save, and re-package your project. Apple stopped complaining for me.

I think the "correct" way is to hunt a little more and find out where/when the file that was generated omitted this setting. So, I wouldn't use this as a permanent solution. But it should unblock you for now.

more ▼

answered Feb 06 '17 at 10:25 PM

avatar image

Jason Powell
41 2 4 5

avatar image zshj0914 Feb 05 '17 at 03:13 AM

I'm also getting the same problem. I even tried steve's method above, cleaning everything, still not working. I even copied IOSengine.ini into project/config/IOS folder, added bSupportsPushNotifications=True. still not working. Does anyone have any solution?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question