When I click on the Notification the app is not open.
Asked
Active
Viewed 184 times
-2
-
Post the code you use to create the notifications. – David Wasser Dec 09 '16 at 20:22
-
@David Wasser i have updated the post. pls check it – Shanmugapriya D Dec 13 '16 at 05:32
-
Sorry, I don't see any code here that **creates** a Notification. Post the code that creates the Notification please – David Wasser Dec 13 '16 at 21:31
-
@DavidWasser This is Urban Airship plugin. In plugin it self it have the create notification function is there. – Shanmugapriya D Dec 15 '16 at 05:42
-
Is it getting to the receiver? What about the activity? The one thing that really stands out to me is multiple calls to `setFlags`. The last set will win. To set multiple flags or them together `setFlags(IIntent.FLAG_ACTIVITY_NEW_TASK | ... )` – ralepinski Dec 16 '16 at 16:13
-
@ralepinski thanks for comment. But i used same thing as you suggested. but till is not working. – Shanmugapriya D Dec 20 '16 at 12:03
-
Were you able to solve this yet? I'm curious. – David Wasser Dec 29 '16 at 17:38
1 Answers
0
I have setFloags like below. now it is working.
i.setFlags (Intent.FLAG_ACTIVITY_CLEAR_TASK| Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK | Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);

Shanmugapriya D
- 306
- 3
- 13