- Home /
Android/iOS notifications when the game is not running
Hello, I'm wondering how to do notifications on Android and iOS when the game is not running. I don't mean push notifications but notifications that get triggered by the game itself. I was thinking that if I was writing a native Android app, I would have a service running that triggers those when needed, but with Unity I'm not sure. I have found plugins that enable you to schedule notifications that get triggered after some time (Etcetera by Prime31, ...), even when the game is not running. Is that the only way of doing such notifications with Unity or is there another way, a background service for example? Thank you in advance!
Answer by Voxel-Busters · Aug 11, 2015 at 11:08 AM
Instead of a background service, I suggest to send notification from your server based on the scheduled time. Other option is to schedule a local notification for a later time or make it repeating.
Worth mentioning, We developed Cross Platform Native Plugins , which provides a unified access to use Local and Push notifications on iOS and Android with same lines of code(unified API).
It has many other features (In-App purchases, Webview, Leaderboards & Achievements (coming soon) and more). Here is what notifications feature can do
Supports both Local and Remote Notifications.
Repeat Local Notifications for a time Interval
Customize the Keys you want to send in the payload
Custom Large Icon, Sound allowed
Support for setting small White icon on >= 5.0 devices
Receive Launched start up notification
Receive notifications when in background or when app is not running
*Please note that GCM works on Play Store - Android.