Skip to content

Commit 699657f

Browse files
committed
Fix notifications with attachments
1 parent 0c6e953 commit 699657f

File tree

1 file changed

+1
-1
lines changed
  • TestProjects/com.unity.mobile-notifications-sample/Assets/Scripts

1 file changed

+1
-1
lines changed

TestProjects/com.unity.mobile-notifications-sample/Assets/Scripts/iOSTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ private void InstantiateAllTestButtons()
238238
{
239239
var attachments = new List<iOSNotificationAttachment>();
240240
foreach (var att in template.Attachments)
241-
attachments.Add(new iOSNotificationAttachment() { Url = "file://" + Path.Combine(Application.streamingAssetsPath, att) });
241+
attachments.Add(new iOSNotificationAttachment() { Url = new Uri(Path.Combine(Application.streamingAssetsPath, att)).AbsoluteUri });
242242
notification.Attachments = attachments;
243243
}
244244
ScheduleNotification(notification);

0 commit comments

Comments
 (0)