Skip to content

Commit

Permalink
don't filter out main activity because of samsung
Browse files Browse the repository at this point in the history
  • Loading branch information
Libin Lu authored Sep 30, 2017
1 parent e38f328 commit 73261b4
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,7 @@ public void getInitialNotification(Promise promise){
promise.resolve(null);
return;
}
Intent intent = activity.getIntent();
if(intent.getAction() != null && intent.getAction().equals("android.intent.action.MAIN")){
promise.resolve(null);
return;
}
promise.resolve(parseIntent(intent));
promise.resolve(parseIntent(activity.getIntent()));
}

@ReactMethod
Expand Down Expand Up @@ -308,10 +303,6 @@ public void onActivityResult(Activity activity, int requestCode, int resultCode,

@Override
public void onNewIntent(Intent intent){
// don't call notification if it is started from icon
if(intent.getAction() != null && intent.getAction().equals("android.intent.action.MAIN")){
return;
}
sendEvent("FCMNotificationReceived", parseIntent(intent));
}
}
Expand Down

0 comments on commit 73261b4

Please sign in to comment.