After receiving a notification in my app, clicking on it opens activity B. Activity B has a parent activity A. Here is the manifest:
Create an temporary activity to launch when the notification is clicked (without using setContentView). There you can decide which activity to launch. Depending on your logic.