Does Corona already support push notification or not yet?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
push notification ?
Corona supports local notification but not push notification as of now. But I hope we can see it pretty soon. :)
yea me too
hey you know how local notification works?
I read here in ansca's blog( http://blog.anscamobile.com/2011/10/daily-builds-update-626-631/comment-page-1/#comment-5575 ) but I dont get it
in my main.lua I put:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | local options = { alert = "Wake up!", badge = 1, sound = "alarm.caf", custom = { anythingYouWant = "Corona SDK Rocks!" } } -- schedule using UTC (Coordinated Universal Time) local utcTime = os.date( "!*t", os.time() + 60 ) local launchArgs = system.scheduleNotification( utcTime, options ) local function notificationListener( event ) -- display alert that shows the event name and type: native.showAlert( event.name, event.type, { "OK" } ) -- do something here end -- Listen for notification events: Runtime:addEventListener( "notification", notificationListener ) if launchArgs and launchArgs.notification then -- call the event listener manually: notificationListener( launchArgs.notification ) end |
views:3382 update:2011/10/25 9:10:48
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
相关文章
Deleting Objects
App of the Week - Free Reviews?
Can't play wmv, avi, asf on Android
Additional levels by IAPP?
Football/Soccer manager game
Does Xperia Play dpad and buttons return string with onKeyEvent?
A platform that lifts the player
Android onKeyEvent
For anyone using HTTPS in an app...
Runs good on 3GS and lower but not iPhone 4! (Scaling issue)
App of the Week - Free Reviews?
Can't play wmv, avi, asf on Android
Additional levels by IAPP?
Football/Soccer manager game
Does Xperia Play dpad and buttons return string with onKeyEvent?
A platform that lifts the player
Android onKeyEvent
For anyone using HTTPS in an app...
Runs good on 3GS and lower but not iPhone 4! (Scaling issue)
corona forums © 2003-2011