Deep Soni

Deep Soni

  • NA
  • 134
  • 22.2k

How to make Firebase Api for the scheduled notification usin

Aug 19 2019 5:16 AM
I am creating an application in that I need to implement scheduled push notification in an application. Currently, I am sending notification currently and that is working fine. Now I need to use API for sending a scheduled notification.
 
I try with below code for scheduled notification:
  1. var obj = new  
  2. {  
  3. to = Id,  
  4. data = new  
  5. {  
  6. title = Title,  
  7. text = Message,  
  8. icon = Icon,  
  9. schedule = new  
  10. {  
  11. startTime = new  
  12. {  
  13. date = new  
  14. {  
  15. day = 19,  
  16. month = 8,  
  17. year = 2019  
  18. },  
  19. time = new  
  20. {  
  21. hours = 11,  
  22. minutes = 07,  
  23. },  
  24. timeZone = "Asia/Calcutta"  
  25. },  
  26. }  
  27. },  
  28. };  
Through the above code, notification is sent but not as per a particular time period.
 
Can anyone look into this and suggest me what should I have to do in that?

Answers (1)