Configuring Capabilities of App and Extensions
Enabling App Capabilities for App
Note:
- Make sure you add App Transport Security Settings with Allow Arbitrary Loads as YES in Info.plist of App, Service Extension and Content Extension to support http calls.
- App Groups must be same between App, Service Extension and Content Extension.
For Smartech SDK to work, you need to enable below app capabilities in your main app.
- App Groups - Enable/Add and select a valid App Group for your app. This is used by App, Service Extension and Content Extension to access data as all three are different targets.
- Background Modes - Enable/Add Background Modes and select Remote notifications. This used to send remote notifications in background mode.
- Push Notifications - Enable/Add and Configure App Push Notifications feature for your App ID in Apple Developer Account. This is used to enable the push notifications for the app.
Enabling App Capabilities for Service and Content Extension
For our SDK to work in your project you need to enable below app capability in both of your extensions.
- App Groups - Enable/Add and select a valid App Group for your app. This is used by App, Service Extension and Content Extension to access data as all three are different targets.
You can refer to the below PDF for detailed steps to enable app capabilities in your main app and extensions.
Updated over 4 years ago