Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 2 goals :
1. scheduled notification
for example every salesman everyday at 10.00 will receive notification their target achievement, which the messages must be different among them.

2. unscheduled notification
for example user A changes to Customer's credit limit from 1000 to 1500, and it need an approval from his supervisor(user B).
after he submit it, then a notification will appear in user B phone

so which i have to use Local or Push Notification?
Any help is greatly appreciated.

What I have tried:

i have tried use local and push notification (fcm)
but still confuse.
Posted
Updated 14-Jan-23 3:53am
Comments
[no name] 24-Nov-22 8:32am    
1. Is a pull 2. Is a push.
PIEBALDconsult 24-Nov-22 17:11pm    
Push is evil, don't do it. Pull is the only reasonable technique.
flowtowin 30-Nov-22 22:31pm    
Thanks for reply. Then how to do it? it have to use timer to check if there is notification to be pull
or there is something better to do it in code behind?

1 solution

Based on your question, it depends on your application structure.
For the first part, sales man target achievement notification, is related to their goals that they have achieved, I assumed that it must be sent from server side so you need push notification, but if user works with your App everyday you can submit next day notification locally using pull notification.

Also for the second approach you need push notification, it`s not as hard as it seems, based on your question category, you are using Xamarin, so it`s easy to implement using Xamarin.Firebase (Nuget package) try to send Push notification from your Server to your clients based on their ID or Topic Subscription.

Firebase Cloud Messaging - Xamarin | Microsoft Learn[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900