Search Issue Tracker

Fixed in Unity 2018.3.9f1

Votes

0

Found in

2018.3.0b9

Issue ID

1101266

Regression

Yes

[iOS] Unity adds Game Center and Push Notifications Capabilities to Xcode project if you have code using those features

iOS

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 2Core functionality majorly impacted

Unity automatically adds Game Center and Push notifications Capabilities to Xcode project, if you have code using those features e.g.

Social.localUser.Authenticate(ProcessAuthentication);
NotificationServices.RegisterForNotifications(NotificationType.Alert, true);

Xcode capabilities then make Xcode require those entitlements in the provisioning profile and then it's not possible to use wildcard provisioning profiles e.g. for Enterprise distribution

To reproduce:

1. Download attached project "New Unity Project (11)" and open in Unity
2. Open "SampleScene" scene
3. Build for iOS
4. Open the Xcode project
5. Select "Unity-iPhone" from the project navigator in Xcode
6. Select "Capabilities" see Game Center and Push Notifications enabled

Expected results: Observe that Game Center and Push Notifications are disabled
Actual results: Observe that Game Center and Push Notifications are enabled

Notes:
- On Unity 2018.2.0a1 it started to add Push Notifications
- On Unity 2018.3.0a8 it started to add Game Center

Not reproduced on Unity 2017.4.14f1 and 2018.1.9f2, 2018.2.15f1, 2018.3.0b9 and 2019.1.0a8
Reproduced on Unity 2018.2.0a1, 2018.2.17f1, 2018.3.0b11 and 2019.1.0a9
Regression on 2018.2.0a1 and 2018.3.0a8

Response avatar

Resolution Note:

We added a new setting in Player Settings under Other Settings tab where you can check or uncheck "Automatically add capabilities" setting

Comments (2)

  1. 2e2804ae7eb110a35e376fdf886930b7?d=mm

    kickstep

    Apr 16, 2019 02:28

    Regression: Just checked in Unity 2018.3.8f1, 2018.3.10f1. Resolution "Player Settings under Other Settings tab where you can check or uncheck "Automatically add capabilities" setting" is not available.

    It does not seem possible to turn off automatic capability adding.

    Second issue: Unity automatically adds Push notifications capability even when authoring with local notifications. This is unnecessary and requires turning off Push Notifications Capability when only using local notifications.

  2. 3b7eae802ae27cb3548f7d48f619c472?d=mm

    Devil_Inside

    Jan 24, 2019 19:57

    Can this please be back-ported to Unity 2018.3 and 2018 LTS. I'm stuck on 2018.1 because of this and won't be able to upgrade to 2018 LTS if it's not fixed.

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.