braze-swift-sdk
braze-swift-sdk copied to clipboard
[Bug]: Including BrazeKit in tvOS target causes issue with push notification entitlement
Platform
Other
Platform Version
tvOS
Braze SDK Version
8.0.1
Xcode Version
Xcode 15.2
Computer Processor
Apple (M1)
Repro Rate
100%
Steps To Reproduce
Example:
- Add basic integration for Braze in
AppDelegate.swift
let config = Braze.Configuration(apiKey: "key", endpoint: "endpoint")
self.braze = Braze(configuration: config)
- Upload the build to TestFlight
Expected Behavior
No issues reported by AppSore Connect.
Actual Incorrect Behavior
AppStore Connect sends an email about an issue in the uploaded build:
ITMS-90078: 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. 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. Xcode does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1.
Verbose Logs
No response
Additional Information
Obviously we could add push notification entitlement to the tvOS target to silence this error, but since it doesn't actually support those and neither does the Braze SDK, we shouldn't need to do so.