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
1
+ using System ;
1
2
using UnityEngine ;
2
3
3
4
namespace Unity . Notifications . Android
@@ -8,6 +9,17 @@ public NotificationCallback() : base("com.unity.androidnotifications.Notificatio
8
9
{
9
10
}
10
11
12
+ public override AndroidJavaObject Invoke ( string methodName , AndroidJavaObject [ ] args )
13
+ {
14
+ if ( methodName . Equals ( "onSentNotification" , StringComparison . InvariantCulture ) && args != null && args . Length == 1 )
15
+ {
16
+ onSentNotification ( args [ 0 ] ) ;
17
+ return null ;
18
+ }
19
+
20
+ return base . Invoke ( methodName , args ) ;
21
+ }
22
+
11
23
public void onSentNotification ( AndroidJavaObject notification )
12
24
{
13
25
AndroidReceivedNotificationMainThreadDispatcher . GetInstance ( ) . EnqueueReceivedNotification ( notification ) ;
You can’t perform that action at this time.
0 commit comments