News feed in game

I’ve noticed on a few games that they have News feeds where the developer send short messages to the user to see on the main menu. It could be either that an update is coming or some even promote their other apps there or some just send thank you messages etc.

has anyone done anything similar?
David [import]uid: 34126 topic_id: 6375 reply_id: 306375[/import]

I’ve done that and it’s a good technique to keep your users informed of updates. For some apps I would highly recommend it. [import]uid: 8045 topic_id: 6375 reply_id: 22068[/import]

How did you implement it?

Do you create a webview and link it to your website or a twitter account?
I thought it was a cool thing and I would like to learn how to do it.

I saw it just recently, don’t remember the apps name but all of a sudden this string of text scrolled from right to left over a period of a 5-10 sec.

Do you have a sample code? [import]uid: 34126 topic_id: 6375 reply_id: 22079[/import]

You can use this as a starting point:
http://developer.anscamobile.com/sample-code/asynch-http

[lua]local myText = display.newText("(Waiting for response)", 0, 0, native.systemFont, 16)
myText.x = display.contentCenterX
myText.y = 120

local function networkListener( event )
if ( event.isError ) then
myText.text = “Network error!”
else
myText.text = “See Corona Terminal for response”
print ( "RESPONSE: " … event.response )
end
end

– Access Google over SSL:
network.request( “https://encrypted.google.com”, “GET”, networkListener )[/lua]

You can then style it using lua. [import]uid: 8045 topic_id: 6375 reply_id: 22080[/import]

Thanks for the pointers, I will look at that after I have read the api’s and the guides.

Question though, how do you add/change messages without sending an updated app to apple?

Like I said above, do you send a tweet, email or a short blog post from the website or how does that part work?

I would assume its could be an RSS feed or something??

Thanks for the reply [import]uid: 34126 topic_id: 6375 reply_id: 22087[/import]

That’s a good question.

You can use a service that can be consumed by the request.

For example, an rss feed or even a simple “hello world” output from a php page or other dynamic source. Point your request and the server will respond with the result or data. You then take that response (for example hello holmes2870) and stuff the response to a variable. That variable can then be bound to a text box or native UI component.

There is a sample twitter app at:
http://developer.anscamobile.com/content/twitter

The complete set of Networking samples can be found at:
http://developer.anscamobile.com/sample-code/networking [import]uid: 8045 topic_id: 6375 reply_id: 22091[/import]