Hi there!
My requirement: When receive a new push message, needs to identify which kind of message I received (data tag) and redirect the user to a different activity then Main (I have like 7 different activities that will be thrown depending on the notification received).
So I'm sending a push notification to my App, using both tags: data and notification.
When my App is in background I'm having a weird issue.
I catch the extra's Intent on onResume, to identify which Activity I should redirect. That's works like a charm. Although when I use CallSub2(Activity, "Method", Parameter), the activity is shown and Main is killed. And after that starts some kind of loop, trying to re-launch Main activity/Activity from push.
Ay ideas on how I can solve this? Catch the notification when the App is in background and when the user clicks on it route him to the correct Activity.
Cheers.
My requirement: When receive a new push message, needs to identify which kind of message I received (data tag) and redirect the user to a different activity then Main (I have like 7 different activities that will be thrown depending on the notification received).
So I'm sending a push notification to my App, using both tags: data and notification.
When my App is in background I'm having a weird issue.
I catch the extra's Intent on onResume, to identify which Activity I should redirect. That's works like a charm. Although when I use CallSub2(Activity, "Method", Parameter), the activity is shown and Main is killed. And after that starts some kind of loop, trying to re-launch Main activity/Activity from push.
Ay ideas on how I can solve this? Catch the notification when the App is in background and when the user clicks on it route him to the correct Activity.
Cheers.