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: 
rynop
Visitor

RoAppInfo.getTitle() always returns "roku"

Brightscript Debugger> ai = CreateObject("roAppInfo")
Brightscript Debugger> print ai.GetTitle()


This ALWAYS returns the string "roku".  I've tried loading my zip via web interface, eclipse plugin and atom plugin.

Here is my manifest:
title=ryan
major_version=1
minor_version=0
build_version=0
mm_icon_focus_fhd=pkg:/images/icon-fhd.png
mm_icon_focus_hd=pkg:/images/icon-hd.png
mm_icon_focus_sd=pkg:/images/icon-sd.png
splash_screen_fhd=pkg:/images/splash-fhd.png
bs_libs_required=roku_ads_lib
ui_resolutions=fhd


There is another developer doing the same thing and it is returning the app name from the mainifest file.  

Any idea what is going on?  I am using the Roku Ad Framework (RAF) and newest roku stick (device model 3600x).  OS ver 7.5.0 (247.50E04099A247.50E04099A)

Futher details can be found here: https://github.com/veeta-tv/roku-gamp/pull/15
0 Kudos
10 REPLIES 10
belltown
Roku Guru

Re: RoAppInfo.getTitle() always returns "roku"

I'm not having any problems with roAppInfo.

What happens if you try this:

print CreateObject("roAppInfo").GetValue("title")


and also try to print any of the other fields in your manifest using GetValue() ?
https://github.com/belltown/
0 Kudos
rynop
Visitor

Re: RoAppInfo.getTitle() always returns "roku"

print CreateObject("roAppInfo").GetValue("title")


prints "roku"

Its getting other fields from my manifest cuz if I change `major_version=2` and run


[size=100]print CreateObject("roAppInfo").GetValue("major_version")[/size]

2

print CreateObject("roAppInfo").GetValue("ui_resolutions")

fhd


I have a screen graph app, not sure if that matters.
0 Kudos
belltown
Roku Guru

Re: RoAppInfo.getTitle() always returns "roku"

"rynop" wrote:
I have a screen graph app, not sure if that matters.

As long as it's not in the Render thread, it should still work. I'm using it in a Scene Graph channel in Main() and in a Task node.

Maybe it's a problem with your manifest file itself. Try starting with a completely blank, empty file and type in the manifest fields again (no cut n' paste).
https://github.com/belltown/
0 Kudos
rynop
Visitor

Re: RoAppInfo.getTitle() always returns "roku"

thanks. so strange.  Fields in my manifest are definately working as things like splash_screen_fhd is working fine (and responds to adjustments in path values to new images)

I created my manifest from scratch, using emacs (I'm on MacOS). I still get roku:


Brightscript Debugger> print CreateObject("roAppInfo").gettitle()

roku


Here is my new manifest

title=ryan
major_version=1
minor_version=0
build_version=0
mm_icon_focus_hd=pkg:/images/icon-hd.png
splash_screen_fhd=pkg:/images/splash-fhd.png
ui_resolutions=fhd
bs_libs_required=roku_ads_lib



I'm getting the same thing from the Main Thread....
0 Kudos
belltown
Roku Guru

Re: RoAppInfo.getTitle() always returns "roku"

That's very strange. Once more thing I'd try before declaring it a Roku bug, would be to create another channel that contains nothing but a manifest and a Main.brs, where Main() does nothing but print your appInfo title.
https://github.com/belltown/
0 Kudos
joetesta
Roku Guru

Re: RoAppInfo.getTitle() always returns "roku"

I tested on Roku Premiere and Roku Express and both worked / showed the correct app name from the manifest file.
What model and firmware are you on, in case it matters?
aspiring
0 Kudos
Komag
Roku Guru

Re: RoAppInfo.getTitle() always returns "roku"

Maybe a difference between side-load and private channel?
0 Kudos
EnTerr
Roku Guru

Re: RoAppInfo.getTitle() always returns "roku"

"Komag" wrote:
Maybe a difference between side-load and private channel?

No, i don't think so. Looking forward to hear from @rynop what was the reason, my interest is piqued...
0 Kudos
rynop
Visitor

Re: RoAppInfo.getTitle() always returns "roku"

@joetesta specs are in my 1st post.

@belltown creating  a clean project from eclipse indeed displayed the correct title value from manifest file.

The problem was, when I created the "problem" project in eclipse the 1st time, it created a 2nd manifest file under locale/en_US.  This file has the "roku" string as the title...

thanks for all the help
0 Kudos