App permissions

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:

Copy
Copied
<dict>

<key>UIBackgroundModes</key>

<array>

<string>remote-notification</string>

</array>

</dict>

Other permissions

If you enable the option to send voice messages, you will need to add the NSMicrophoneUsageDescription permission. Likewise, if you enable the Share Location option, you may also need to add location permissions NSLocationAlwaysAndWhenInUseUsageDescription and NSLocationWhenInUseUsageDescription, based on your use case.

Example:

Copy
Copied
<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.

We'd love to hear from you!
Rate this content:
Still have a question?
 
Ask the community.