Skip to content

Commit bcac4cf

Browse files
committed
Add comment about forward receive
1 parent 0fc5bde commit bcac4cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

com.unity.mobile.notifications/Runtime/Android/Plugins/com/unity/androidnotifications/UnityNotificationManager.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,9 @@ public void cancelAllNotifications() {
614614

615615
@Override
616616
public void onReceive(Context context, Intent intent) {
617+
// This method is called on OS created instance and that instance is recreated during various times
618+
// for example sending app to background will cause new instance to be created when alarm fires
619+
// since we also create one instance for our uses, always forward to that instance (creating if necessary)
617620
getNotificationManagerImpl(context).onReceive(intent);
618621
}
619622

0 commit comments

Comments
 (0)