Your Digital Media Has Never Looked So Good

 
ajitg_4557
Topic Author
Posts: 26
Joined: Thu Feb 16, 2017 5:53 am
Location: Noida,Uttar pradesh,India
Contact:

how to launch one channel from another & comeback to previous channel on Back button

Mon Jul 30, 2018 6:45 am

hi, guys
     I am launching a channel from another channel.it's work fine.
     but whenever press back button on the recently launched channel,(with expectation)it should go to the previous channel.

thanks in advance.
 
joetesta
Posts: 790
Joined: Wed Apr 20, 2011 11:48 am

Re: how to launch one channel from another & comeback to previous channel on Back button

Mon Jul 30, 2018 8:38 am

yeah, you can't do that.
aspiring
 
necrotek
Posts: 31
Joined: Tue Sep 13, 2011 7:49 pm

Re: how to launch one channel from another & comeback to previous channel on Back button

Mon Jul 30, 2018 5:20 pm

You might be able to use Deeplinking special field to set an argument in the launch url

https://sdkdocs.roku.com/display/sdkdoc/Deep+Linking

http://<IP of Roku>:8060/launch/[dev | channel ID]?special=<channel to return to ID>

You could check if this is present  and then set conditional if present on back button launch previous channel.
function main(args={})

If back_button_pressed and args.special<>invalid  then launchChannel(args.special)
end function 

Though Certification asks you to return to "Roku Home menu" if back button is pressed on top level screen. Maybe a "Dialog box" asking if user wants to return home or to previous channel 
 
joetesta
Posts: 790
Joined: Wed Apr 20, 2011 11:48 am

Re: how to launch one channel from another & comeback to previous channel on Back button

Mon Jul 30, 2018 5:44 pm

that solution seems great though I'm nearly certain that certification doesn't allow launching a different channel. 
aspiring
 
ajitg_4557
Topic Author
Posts: 26
Joined: Thu Feb 16, 2017 5:53 am
Location: Noida,Uttar pradesh,India
Contact:

Re: how to launch one channel from another & comeback to previous channel on Back button

Mon Jul 30, 2018 9:59 pm

thanks to all for your quick response.

but I have seen this scenario in some Roku channel, like IFOOOD TV channel
this is the channel store link of ifood tv. you may see in this.
please, you guys look in it.

thanks again.

Who is online

Users browsing this forum: No registered users and 10 guests