File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
com.unity.mobile.notifications/Runtime/Android Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -716,6 +716,18 @@ public static void SendNotification(AndroidJavaObject notificationBuilder)
716
716
s_Jni . NotificationManager . ScheduleNotification ( notificationBuilder ) ;
717
717
}
718
718
719
+ /// <summary>
720
+ /// Schedule a notification created using the provided Notification.Builder object.
721
+ /// Notification builder should be created by calling CreateNotificationBuilder.
722
+ /// Stores the notification id to the second argument
723
+ /// </summary>
724
+ public static void SendNotification ( AndroidJavaObject notificationBuilder , out int id )
725
+ {
726
+ id = - 1 ;
727
+ if ( Initialize ( ) )
728
+ id = s_Jni . NotificationManager . ScheduleNotification ( notificationBuilder ) ;
729
+ }
730
+
719
731
/// <summary>
720
732
/// Update an already scheduled notification.
721
733
/// If a notification with the specified id was already scheduled it will be overridden with the information from the passed notification struct.
You can’t perform that action at this time.
0 commit comments