Commit 1380a06d authored by Libin Lu's avatar Libin Lu Committed by GitHub

Update FIRMessagingModule.java

parent 27628be0
......@@ -57,11 +57,11 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li
@ReactMethod
public void getInitialNotification(Promise promise){
Activity activity = getCurrentActivity();
if(activity == null){
if(activity == null || activity.getIntent().getAction() == "android.intent.action.MAIN"){
promise.resolve(null);
return;
}
promise.resolve(parseIntent(getCurrentActivity().getIntent()));
promise.resolve(parseIntent(activity.getIntent()));
}
@ReactMethod
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment