Push- (, deeplink) - . - , . , Firebase, .
, push- Intent . , (, onStart/Resume()). , , , , - :
Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.my.package cmp=com.my.package/.MyMainActivity (has extras) }
Extras {
google.sent_time > 1490275998196,
from > 9994599943,
google.message_id > 0:14902799999965%346177c211bbbb7c2,
collapse_key > com.my.package
}
, -
if (getIntent() != null && getIntent().getExtras() != null) {
//identify whether this was a push notification intent
if (getIntent().getExtras().get("google.message_id") != null) {
//Here you can do the same things you do when opened from background
console.log("completed"");
}
}