Is it possible to send a local notification, for example, every hour? Or is the only way to do this to go through the push method?
Thanks [import]uid: 24641 topic_id: 19853 reply_id: 319853[/import]
Is it possible to send a local notification, for example, every hour? Or is the only way to do this to go through the push method?
Thanks [import]uid: 24641 topic_id: 19853 reply_id: 319853[/import]
@bertybottom - You can do it both with local notification and push notification. If it is a onetime thing, then just use local notification and schedule notification for every hour of the day…
The advantage with push notification is that you have better control over the notification and you can modify it at a later stage…
thx,
Bejoy [import]uid: 84539 topic_id: 19853 reply_id: 77141[/import]
but runtime events won’t work will they? e.g
local function timer()
--find hour using os.date
if hour == 1 then
-- do local notification
end
end
Runtime:addEventListener("enterFrame",timer)
that was just an example but it illustrates my point - surely if the app is in the background, the runtime event listener won’t be called?
Thanks,
Maxl [import]uid: 24641 topic_id: 19853 reply_id: 77193[/import]
True runtime events won’t trigger if the app is in background. In your case push notification seems to be better option. [import]uid: 84539 topic_id: 19853 reply_id: 77327[/import]