Skip to content

Commit 0326d93

Browse files
committed
Fixed app open on cold start from notification
* Main activity wasn't luanching when tapping on a notification that resulted in the app being cold started. * This was fixed by adding a missing startActivity and removing an unneeded PendingIntent * This was a bug interduced in PR #1192 in 4.0.0 release
1 parent 4b804ab commit 0326d93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

OneSignalSDK/onesignal/src/main/java/com/onesignal/OneSignal.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2178,10 +2178,11 @@ static boolean startOrResumeApp(Activity inContext) {
21782178
inContext.startActivity(launchIntent);
21792179
} else {
21802180
launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
2181-
PendingIntent.getActivity(inContext, 0, launchIntent, 0);
2181+
inContext.startActivity(launchIntent);
21822182
}
21832183
return true;
21842184
}
2185+
21852186
return false;
21862187
}
21872188

0 commit comments

Comments
 (0)