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: 
squirreltown
Level 9

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
Level 10

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
Level 9

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
Level 10

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
Level 9

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
Level 10

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
Level 9

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
Level 10

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
Level 7

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
Level 7

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