Garmaine Staff asked 2 years ago

When user receives a push notification and clicked on the notification link. If s/he is logged in, (I make an Api call and pass the data in bundle and start the DialogActivity using an Intent) s/he will be taken to the right screen in the app which is a DialogActivity. However, if s/he is not logged in, s/he will be directed to the login screen to log in. After logging in, s/he will go directly to the home/dashboard screen instead of the right screen (the DialogActivity) in the app. I managed to redirect, after logging in, to the DailogActivity screen, however I cannot manage to have the data available there. I tried using share preferences to save the data and retrieved them later after user logged in, however that doesn't work. What's the best way to implement this?