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)
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.
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.
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?
Sorry no, the first line hangs it. Doesn't crash in the debugger, but requires the home button to clear.
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?
My hearing does get a bit sensitive when they shout required for certification! , but you may be right.
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.
Did you get a resolution to the problem? I have tried similar solutions but get the same errors that you got.
n = createobject("rosgnode","scene")
n.signalBeacon("AppLaunchComplete")
Works for me but I am just using a traditional grid screen home screen.