Skip to content

Commit 6d1a411

Browse files
committed
Condition is the opposite
1 parent 1905f69 commit 6d1a411

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.unity.mobile.notifications/Runtime/iOS/Plugins/UnityNotificationManager.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ - (UNNotificationSound*)soundForNotification:(const iOSNotificationData*)data
380380
if (soundName != nil)
381381
{
382382
if (data->soundVolume < 0)
383-
return [UNNotificationSound criticalSoundNamed: soundName withAudioVolume: data->soundVolume];
384-
return [UNNotificationSound criticalSoundNamed: soundName];
383+
return [UNNotificationSound criticalSoundNamed: soundName];
384+
return [UNNotificationSound criticalSoundNamed: soundName withAudioVolume: data->soundVolume];
385385
}
386386
if (data->soundVolume >= 0)
387387
return [UNNotificationSound defaultCriticalSoundWithAudioVolume: data->soundVolume];

0 commit comments

Comments
 (0)