Seems that onNewIntent()
of my MainActivity is not being called when I have another Activity
on top of it, if I close the second Activity
it does get called just fine, it's like the other Activity
which is on top is blocking the messages? Both Activity
s are set to singleTop in the manifest and I set the Intent
from a notification:
Intent intent = new Intent(getApplicationContext(), MainActivity.class);
intent.setAction(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
PendingIntent pIntent = PendingIntent.getActivity(getApplicationContext(), 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
Does anybody know what could be wrong?
Thanks!