- Home /
Reading notifications from Unity or knowing if notifications are enabled
Hi,
We are working on a Unity app and we would like to push our players to enable notifications on their mobile for our app. First, is there a way to know if notification are enabled on both Android and IOs ? We could not find a way.
Then we had the idea to reward players who had enabled notifications by giving them a special code in a notification that would trigger when pushing a button. The thing is that notification are not shown if the app is currently running in foreground. So the player or the app has no way to know if the notification has been received. Can we know ? Is there an easier way ?
Thanks for reading and have a good day.
visit these links will solve your problem
Simple Android Notifications Free
You can use the plugin available on github https://github.com/Agasper/unity-android-notifications using this you can send notifications and sets icon which you like.
Thanks for your answer. I don't think these plugins can solve my problem. These plugin can send notification to the player but they still cant if the app is running in foreground (as shown in the example). $$anonymous$$aybe I'm wrong but I don't think these plugins can read notifications or figure if the phone has notifications enabled, which is what I'm trying to do. Thanks for your help.
Hi, did you find a solution for checking Android Notification Permissions? I am struggling since days to figure out how to do that. Cheers
Your answer
Follow this Question
Related Questions
Run a script in background when the app is open or closed 5 Answers
Android/iOS notifications when the game is not running 1 Answer
iOS Turn Off Push Notifications Pop Up 0 Answers
Create notification if already there is no notification created 0 Answers
[iOS] NotificationServices.localNotifications is empty when game is minimized 1 Answer