Skip to content

Commit d699c1a

Browse files
committed
Add docs for sounds and other media
1 parent 35f2948 commit d699c1a

File tree

1 file changed

+6
-0
lines changed
  • com.unity.mobile.notifications/Documentation~

1 file changed

+6
-0
lines changed

com.unity.mobile.notifications/Documentation~/iOS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,3 +225,9 @@ Sometimes, you might want to set custom data on the payload for a remote notific
225225
```
226226

227227
You have to use the exact `data` as the key of your custom data, because this is what the package looks for.
228+
229+
#### Images, videos and sounds
230+
231+
By default notifications use the default system sound. Sound can be disabled by changing the [iOSNotificationCenter.SoundType](../api/Unity.Notifications.iOS.iOSNotification.html#Unity_Notifications_iOS_iOSNotification_SoundType). A custom sound can be used by using Default sound type and assigning sound file name to [iOSNotificationCenter.SoundName](../api/Unity.Notifications.iOS.iOSNotification.html#Unity_Notifications_iOS_iOSNotification_SoundName). The sound file itself has to be manually added to XCode project. For more information, see [Apple documentation](https://developer.apple.com/documentation/usernotifications/unnotificationsound?language=objc).
232+
233+
Images or video can added to notifications by using [attachments](../api/Unity.Notifications.iOS.iOSNotificationAttachment.html).

0 commit comments

Comments
 (0)