3

I have read every piece of documentation I could find but still do not know if this is possible. Can I schedule push notifications for a specific time if I am a user?

Example:

1) I am a user and open the app

2) I allow notifications and go to a pickerView(or anything else) and set a time say at 10AM

3) Now everyday I receive a push notification only at that time

Thanks so much for the help!

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
user7097242
  • 1,034
  • 3
  • 16
  • 31
  • If the content of your notification is not changing everyday and you want to send the same notification daily at a specified time like a reminder, its better you use Local notifications instead of Firebase push notification. – Kapil G Aug 02 '17 at 17:54
  • If it changes you need to setup a backend and apply batch jobs for that particular time and fire them individually form the backend and give to Firebase so that Firebase sends on Device. – Kapil G Aug 02 '17 at 18:02
  • @kapsym How would I know when to set them up when a user decides what time they want to receive it? Is there any tutorial on this? Thanks! – user7097242 Aug 02 '17 at 18:37
  • Does your content change or it doesn't? for each notification for user? – Kapil G Aug 02 '17 at 18:38
  • The content will change. We will send something like "picture of the day". – user7097242 Aug 02 '17 at 19:03

1 Answers1

2

You can use cronjobs. Watch this video for getting started
Timing Cloud Functions for Firebase using an HTTP Trigger and Cron - Firecasts

ColdSpike
  • 196
  • 1
  • 17