Hi,
I've come across a plugin for Gideros for iOS notifications here:
http://www.giderosmobile.com/forum/discussion/1103/uinotifications-plugin-local-notifications-for-iphone#Item_3Does anybody have something similar for Android available, specifically setting up a local notification and cancelling them again.
Cheers,
Gareth
Comments
If you really really really need it, I can try experiment something out, single purpose use, etc. But describe what you need more.
Will toast notification work?
Should notifications appear even if you are not inside the app?
Etc.
Once, we wrote some android application which was using AlarmManager class. With it you can simply run any intent (activity). You can use this class for one time or for repetitive jobs. Also you can make an Android service with it. Unfortunately we didn't experiment it so much with it.
If you have any Android based questions and it is within my knowledbase i will be glad to help :-B
I'll still have an attempt at this and if done right (multi purpose, same API for both platforms, etc) maybe it will be included Gideros
And @talis I hope your offer extends to me too, cause I bet I'll might need some help
actually the plugin comes great, better then I anticipated, and now it's time to decide on API design
So which style would you feel more comfortable with?
Multiple instance Gideros style:
Likes: hgvyas123
With your plugin, can we listen to local notification event and react on it even when the game has closed? I mean, could we know which notification opening up the game if we setup more than one notification? Will the behavior similar on Android and iOS?
http://www.nightspade.com
And all notifications would be managed through ids (which would be integers) and you could safe them using persistent storages and modify notifications using these ids later on.
And I also have the event in mind which would receive the notification ID which brought application to front, but I do not know about closed applications right now, because then event will probably be dispatched before you could register to it, so will have to think of some kind of delay and discuss it more with @atilim, so I can't say if it would be possible for closed apps right now.
One scenario i can think off is to setup local or push notification with certain string. So when notification happens, we could read the string/id, then player could buy item in discounted price.
http://www.nightspade.com
Couple of questions just to make sure this is the same thing I need:
1. This will be suitable for setting up notifications that would trigger even if the app is closed?
2. Will you be providing a facility to cancel all notifications setup? Or even just an individual one if we're tracking the IDs. And will this work between app loads.
You see what I'll be wanting to do is setup notifications when the app closes and cancel and that haven't run when the app re-opens. Think Tiny Tower kind of thing, where you get notifications when you're out of the app about things that have happened.
But this is great, many thanks for running with it
(Resarch, code, etc ....)
and on top of that our own @moopf is on opposite party any ways second one final :ar!
Likes: hgvyas123
1) yes they will work even if app is closed, only problem right now that Android seem to cancel them after device reboot, but I already found an approach to fix that and am working on it
2) yes cancelling all events method will also be implemented as well as scheduling them on specific time or after specific time and with specific repeating.
Likes: moopf
Sorry for kicking up the dust on an old post..... but i read this, which referenced another post on notifications.
its like there was to be be a plug in created ?
or is this the code you put into your code:
http://artleeapps.com/
Bubble Adventure - Colors
http://www.giderosmobile.com/forum/discussion/2960/gideros-notification-plugin/p1
http://artleeapps.com/
Bubble Adventure - Colors