Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
techker
Level 8

collecting crash data and sending to server

Hello, We have multiple apps and we added a crash database on our servers to collect the crash data.

For android and IOS we have a way to catch the crash info and send it. As for Roku we do not see a way to collect that data and send it on relaunch?

is there a way to capture that and send the infor to our servers?

0 Kudos
1 REPLY 1
Samantha33
Level 7

Re: collecting crash data and sending to server

Yes, it is possible to capture crash data on Roku devices and send it to your servers. One way to do this is by using the Roku SceneGraph SDK and leveraging the roSGNode interface to collect crash data and send it to your servers.

Here are the steps to capture and send crash data on Roku devices:

  1. Use the roDeviceInfo component to identify the device model and firmware version in case the crash is device-specific.

  2. Implement the roSGNode interface to collect crash data. You can use printStackTrace() method in the roSGNode interface to obtain stack traces when a crash occurs.

  3. Use the roUrlTransfer component to send the crash data to your servers. You can create a custom URL with parameters to send the crash data along with the device and firmware information.

  4. Add an error message and a prompt to notify the user that the app has crashed and that the crash data will be sent to your servers for analysis.

By following these steps of our software development process, you can capture crash data on Roku devices and send it to your servers for further analysis and troubleshooting.

0 Kudos