Closed ShriKush closed 8 years ago
Our actions framework run all actions after the SDK starts the launcher activity. To override that behavior you need to set an intent receiver and manually handle when to launch the activity or not. Thats the heavy handed solution, I think what you actually want is to just set Intent.FLAG_ACTIVITY_SINGLE_TOP
on the intent you are starting in the deep link activity. That will not start the activity if its already at the top of the stack, instead it will just call the onNewIntent
method.
I just tested this on the sample and it indeed launches the home activity twice. Moving finish() up in the parse deep link activity before i start the new activity fixes the issue. Maybe give that try?
Problem of relaunching occurs when i manually kill the application and then click on the push notification. Please suggest.
I tried finish() before start the new activity, but same problem occur.
Could you post updated code? What intent flags are you using when finishing the activity first?
Hi,
We are using Urban Airship SDK for android, and using deep linking feature for the app. We have integrated SDK and able to send and receive push notifications via deep linking but when we click on push message our required activity is called according to our logic but when we click on back button our application launch again automatically.
NOTE: We have not used IntentReceiver class rather than using ParseDepLink activity for handling deep link push message.
Here is the code :
Code for manifest
and code for ParseDeepLinkActivity: