hello everyone
how can I show notification from the game, even if the game is not opened,
where if the user left the game for example 2 days, the game offer a free coins or something like that. so how can I do this.
hello everyone
how can I show notification from the game, even if the game is not opened,
where if the user left the game for example 2 days, the game offer a free coins or something like that. so how can I do this.
I believe what you want is one of the following:
a) Local Notifications that fire up periodically
b) Remote Notifications you can send from either another device or from a server
Either of the two options will send a message to your user’s device and show a notification even when the app is not running. Depending on what your requirements are you can choose any of the two.
‘A’ is “simpler” -you will need to create a service that runs in the background and sends local notifications to your app periodically (unfortunately you will need to create a java plugin for this). But ‘B’ is way more powerful, since you can send custom messages from your server, or even from other devices (imagine sending messages in between users such as “come join me on this round” or reminders such as “log in today and beat level 1 to get X reward”).
If you want to give Remote notifications a try, I have a system in the asset store that will get you started on them. Check it out here:
http://forum.unity3d.com/threads/185452-Easy-Cross-Platform-Notifications-available-now!
http://u3d.as/content/carlos-fernandez-musoles/easy-cross-platform-notifications
And on the bright side, it is cross-platform, so you can send messages to iOS devices as well as android devices at the same time!