Skip to content
Last updated

You must set the permissions for your app.

Push notifications permission

We need two permissions in info.plist:

  • Capability → Push Notifications
  • Capability → background modesRemote notifications + explanation in info.plist:

Example:

<dict>

<key>UIBackgroundModes</key>

<array>

<string>remote-notification</string>

</array>

</dict>

Other permissions

If you [enable]((/docs/sinch-chat/getting-started/ios/configuration-parameters/#disable-some-of-the-features) the option to send voice messages, you will need to add the NSMicrophoneUsageDescription permission. Likewise, if you [enable]((/docs/sinch-chat/getting-started/ios/configuration-parameters/#disable-some-of-the-features) the Share Location option, you may also need to add location permissions NSLocationAlwaysAndWhenInUseUsageDescription and NSLocationWhenInUseUsageDescription, based on your use case.

Example:

<dict>

<key>NSMicrophoneUsageDescription</key>
<string>Enabling microphone access lets you send voice messages in the chat.</string>

<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Enabling location services will allow you to share your location with others through the chat.</string>

<key>NSLocationWhenInUseUsageDescription</key>
<string>Enabling location services will allow you to share your location with others through the chat.</string>

</dict>

The next step is [configure privacy files]((/docs/sinch-chat/getting-started/ios/privacy-manifest-files/).