1. We are having two deep links "sports" & "entertainment". Requirement is to take user to specific list as per deep link on click.
2. In onNotificationOpened returning true in both callbacks inside Airship Receiver as i always want launch of app in my control.
3. No pending intent is added in CustomDefaultFactory.
4. Verified deep link is coming correctly. Checked in in inside CustomDefaultFactory using below code
Map<String, ActionValue> actions = message.getActions();
Following steps for scenario.
Step 1 : Kill the application with right swipe.
Step 2 : Send push from UA console for "sports" deep link. It will display notification on device. Click on notification will take user to Splash Screen as it was in killed state, then as particular extras are added to intent it will follow next screen and finally launch required screen i.e. CategoryFeedDetail.java
(No flag added with intent just added extras.)
Step 3 : Pressed back to close this screen and come on home activity which was started after splashActivity before opening required activity.
Step 4 : Now just keep app in background using home button.
Step 5 : Again send push from UA console for same "sports" deep link. Click on notification it will just bring app in foreground. Also verified "IT IS NOT CALLING" parse activity i.e. ParseDeepLinkActivity in this case so my code for opening screen haven't got fired.
Step 6 : Repeat step 4 and keep app in background as you are still on home screen.
Step 7 : Send push from UA console for "entertainment" deep link now. Click on notification works well and takes user to required screen. This time directly started CategoryFeedDetail.java from ParseDeepLinkActivity as app was running and task was already there. (No flag added with intent just added extras.).
Step 8 : Pressed back to close this screen and come on home screen. Tried sending same "entertainment" link many times after that it works well.
Step 9 : Tried again sending push with "sports" deep link it will not work.
Summary : In case app is killed and we use deep link notification to start app. In that case deep link used never calls parse activity again after click on notification. All other works well.
Your support will be appreciated !
Comments
23 comments