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 modes
→Remote notifications
+ explanation in info.plist:
Example:
<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:
<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.