Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by ameralay · May 21, 2014 at 08:51 PM · androidiosnotifications

Local Notification on android and ios every 24 hours

Hello everyone,

I need to make a local notification for my game on android/ios devices that tells the user that he didn't play/open the game for 24 hours like "We missed you on the board!" or something.

I have searched about many plugins for unity to handle the local notifications but I wonder if the game in the background can calculate the time (for 24 hours) while it is not even running!!

So anyone has any idea about what shall I do?

And If there is anyone can give me an advice which plugin shall I use for the 'local notifications' on android/ios, I would be so grateful!

Thanks

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by $$anonymous$$ · Apr 16, 2015 at 03:29 PM

Why not use Unity's own

NotificationServices : http://docs.unity3d.com/ScriptReference/iOS.NotificationServices.html

LocalNotification : http://docs.unity3d.com/ScriptReference/iOS.LocalNotification.html

Just schedule a local notification OnApplicationPause (when exiting / pausing game) setting 'fireDate' to 24 hours in advance. And clear all local notifications when player resumes the game.

If you want to use plug-ins I recommend Prime31. I've used them in the past and they are quite good and reliable. Take a look at 'Etcetera' and 'Etcetera Two' plug-ins.

Please keep in mind that all the above only will work on iOS. For Android, you need to either buy a separate plug-in or find another way to do the same thing that unity allows it through their API

Hope this helps.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sandeepsmartest · Apr 28, 2015 at 04:16 AM 0
Share

For Android Use Android Native Plugin which helps you in not only scheduling local notification but also In Google Cloud Notification aswell and many extraordinary features. Have a Try-Android Native Plugin Hope this helps

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Push Notifications iOS & Android Vuforia & UrbanAirship 0 Answers

Reading notifications from Unity or knowing if notifications are enabled 0 Answers

Android & iOS Push Notifications 3 Answers

Local notification with closed app 3 Answers

Android/iOS notifications when the game is not running 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges