We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7752b6c commit 43a2306Copy full SHA for 43a2306
sdk/Notifo.SDK/NotifoMobilePush/NotifoMobilePushImplementation.ios.cs
@@ -93,9 +93,11 @@ private async Task<UNMutableNotificationContent> EnrichNotificationContentAsync(
93
content.Body = notification.Body;
94
}
95
96
- if (!string.IsNullOrWhiteSpace(notification.ImageLarge))
+ string image = string.IsNullOrWhiteSpace(notification.ImageLarge) ? notification.ImageSmall : notification.ImageLarge;
97
+
98
+ if (!string.IsNullOrWhiteSpace(image))
99
{
- var imagePath = await GetImageAsync(notification.ImageLarge);
100
+ var imagePath = await GetImageAsync(image);
101
if (!string.IsNullOrWhiteSpace(imagePath))
102
103
var uniqueName = $"{Guid.NewGuid()}{Path.GetExtension(imagePath)}";
0 commit comments