Commit 376343bf authored by Libin Lu's avatar Libin Lu

update example

parent dffb9bfd
package com.google.firebase.quickstart.fcm; package com.google.firebase.quickstart.fcm;
import android.content.Intent;
import com.facebook.react.ReactActivity; import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity { public class MainActivity extends ReactActivity {
...@@ -12,4 +14,11 @@ public class MainActivity extends ReactActivity { ...@@ -12,4 +14,11 @@ public class MainActivity extends ReactActivity {
protected String getMainComponentName() { protected String getMainComponentName() {
return "SimpleFcmClient"; return "SimpleFcmClient";
} }
@Override
public void onNewIntent(Intent intent) {
super.onNewIntent(intent);
setIntent(intent);
}
} }
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