Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
🐧🐛 Issue #1474: Android: force-start starts the app in Foreground ins…
Browse files Browse the repository at this point in the history
…tead of Background
  • Loading branch information
macdonst committed Dec 21, 2016
1 parent e02ff67 commit 2bb5f53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void onCreate(Bundle savedInstanceState) {
boolean isPushPluginActive = PushPlugin.isActive();
boolean inline = processPushBundle(isPushPluginActive, intent);

if(inline && android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.N){
if(inline && android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.N && !startOnBackground){
foreground = true;
}

Expand Down

3 comments on commit 2bb5f53

@VinceOPS
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi

Is it possible to push a new package to NPM, including this commit? The current version (1.9.2) is still suffering from this bug on Android.

Thanks!

@macdonst
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VinceOPS yup, I just published. I was trying to get some other stuff in but got distracted with conferences and other work. Gotta follow my own advice and release often.

@VinceOPS
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that feel :-). Thanks for the release!

Please sign in to comment.