mkdir1995
9 years agoVisitor
How to go back to home screen after displaying deep linking content?
I have implemented deep linking in my channel and it all works fine. However, when I press the back button, the app exits out when I actually want it to go to the home screen instead. I think this has to do with the fact that there is no screen stack to go back to, but even when I add a screen facade, nothing works.
This is the gist of what I have:
I would assume that I could just call the functiojn that displays the home screen after I display the respective screens during deep linking, but that doesn't work either. Any ideas?
This is the gist of what I have:
if ( args.ContentId <> Invalid ) and ( args.mediaType <> Invalid )
item = findItemById( args.ContentId )
if ( item <> Invalid )
if ( args.mediaType = "episode" or args.mediaType = "movie" or args.mediaType = "short-form" or args.mediaType = "special" )
'display springboard screen here'
else if ( args.mediaType = "season" )
'display poster screen here'
end if
end if
else
'showHomeScreen here'
end if
I would assume that I could just call the functiojn that displays the home screen after I display the respective screens during deep linking, but that doesn't work either. Any ideas?