Skip to content

Commit f0c308b

Browse files
authored
Merge pull request #165 from Unity-Technologies/android/cheaper-rescheduling
Refactor Android notification scheduling to be cheaper
2 parents 34f0ad4 + b02786d commit f0c308b

File tree

6 files changed

+318
-191
lines changed

6 files changed

+318
-191
lines changed

com.unity.mobile.notifications/Runtime/Android/AndroidNotificationCenter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public static AndroidNotificationIntentData GetLastNotificationIntent()
383383
return null;
384384

385385
var intent = s_CurrentActivity.Call<AndroidJavaObject>("getIntent");
386-
var notification = intent.Call<AndroidJavaObject>("getParcelableExtra", KEY_NOTIFICATION);
386+
var notification = s_NotificationManagerClass.CallStatic<AndroidJavaObject>("getNotificationFromIntent", s_CurrentActivity, intent);
387387
if (notification == null)
388388
return null;
389389
return GetNotificationData(notification);

0 commit comments

Comments
 (0)