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: 
squirreltown
Roku Guru

signalBeacon

How to add a "AppLaunchComplete" beacon to a non-SG app ( 2D)?

this:

                        esgee = CreateObject("roSGScreen")
			peep = esgee.getGlobalNode()
			peep.signalBeacon("AppLaunchComplete")

returns:

BRIGHTSCRIPT: WARNING: roSGNode.signalBeacon: not reachable. AppLaunchComplete not signalled: pkg:/source/main.brs(19)

Kinetics Screensavers
0 Kudos
10 REPLIES 10
speechles
Roku Guru

Re: signalBeacon

I found it odd too it shows in the documentation it assigns it to the scene.

 

I just use this:

m.top.signalBeacon("AppLaunchComplete")

 

Works for me and sends the beacon from anything.

 

 

 

0 Kudos
squirreltown
Roku Guru

Re: signalBeacon

Yeah, that didn't work for me. There is no RSG in this app. m.top huh? The way I did it is the only way that gets any response so far. Tried making a scene and that didn't go either.

Kinetics Screensavers
speechles
Roku Guru

Re: signalBeacon

Brightscript Debugger> n=createobject("rosgnode","scene")
Brightscript Debugger> n.signalBeacon("AppLaunchComplete")
10-18 19:31:03.422 [beacon.signal] |AppLaunchComplete ---------> Pending Render Pass

 

does that work?

0 Kudos
squirreltown
Roku Guru

Re: signalBeacon

Sorry no, the first line hangs it. Doesn't crash in the debugger, but requires the home button to clear.

Kinetics Screensavers
0 Kudos
speechles
Roku Guru

Re: signalBeacon

Maybe it is only required for sgNode apps since it appears only tied to them. You might be off scot free. Able to just jaunt without having these periodically ring in your ear. Beacon free possibly if you stay far away from sg?

0 Kudos
squirreltown
Roku Guru

Re: signalBeacon

My hearing does get a bit sensitive when they shout required for certification! , but you may be right.Smiley Wink

Kinetics Screensavers
0 Kudos
Komag
Roku Guru

Re: signalBeacon

Half the certification list doesn't apply to games. I wouldn't mind some extra clarity on some of them in that regard, but oh well.

tgbeatty
Newbie

Re: signalBeacon

Did you get a resolution to the problem? I have tried similar solutions but get the same errors that you got.

0 Kudos
tvjay
Channel Surfer

Re: signalBeacon

n = createobject("rosgnode","scene")
n.signalBeacon("AppLaunchComplete")

Works for me but I am just using a traditional grid screen home screen.

0 Kudos