Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JalpaWhiz
Channel Surfer

How to implement "Can't run the channel" message when no internet available

I am Roku app developer, I am using brightscript/screengraph.I have developed an app and want to give below error message as "can't run channel" when no internet is available, like Netflix and other popular channel did.

How should I implement this in my app?

IMG_20220228_161023MP.jpg

0 Kudos
4 REPLIES 4
RobMich
Channel Surfer

Re: How to implement "Can't run the channel" message when no internet available

Hi @JalpaWhiz .  You can check the internet status flag in the device info object.  This will be true when the device is connected.  If the flag is false, they you can pop a dialog stating the the channel can't run.

https://developer.roku.com/docs/references/brightscript/interfaces/ifdeviceinfo.md#getinternetstatus...  

Note that if you want to monitor for the internet status event, then you'll need to enable it:

https://developer.roku.com/docs/references/brightscript/interfaces/ifdeviceinfo.md#enableinternetsta...

 

0 Kudos
renojim
Community Streaming Expert

Re: How to implement "Can't run the channel" message when no internet available

@JalpaWhiz, that message isn't exactly the same thing as what you're looking for.  That message implies the channel package is no longer cached on the device and must be reinstalled from Roku's server.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
JalpaWhiz
Channel Surfer

Re: How to implement "Can't run the channel" message when no internet available

Thanks, I will try that out.

0 Kudos
JalpaWhiz
Channel Surfer

Re: How to implement "Can't run the channel" message when no internet available

Ohh...got it thanks

0 Kudos