File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
com.unity.mobile.notifications/Runtime/iOS Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -268,11 +268,7 @@ public string SoundName
268
268
/// See Apple documentation for supported values.
269
269
/// </summary>
270
270
/// <see href="https://developer.apple.com/documentation/usernotifications/unnotificationsound/2963118-defaultcriticalsoundwithaudiovol?language=objc"/>
271
- public float ? SoundVolume
272
- {
273
- get { return data . soundVolume < 0 ? null : data . soundVolume ; }
274
- set { data . soundVolume = value == null ? - 1.0f : value . Value ; }
275
- }
271
+ public float ? SoundVolume { get ; set ; }
276
272
277
273
/// <summary>
278
274
/// Arbitrary string data which can be retrieved when the notification is used to open the app or is received while the app is running.
@@ -461,6 +457,11 @@ internal iOSNotificationWithUserInfo GetDataForSending()
461
457
{
462
458
if ( data . identifier == null )
463
459
data . identifier = GenerateUniqueID ( ) ;
460
+ if ( SoundVolume . HasValue )
461
+ data . soundVolume = SoundVolume . Value ;
462
+ else
463
+ data . soundVolume = - 1.0f ;
464
+
464
465
iOSNotificationWithUserInfo ret ;
465
466
ret . data = data ;
466
467
ret . userInfo = userInfo ;
You can’t perform that action at this time.
0 commit comments