Reputation: 5705
As title suggest I want to know which approach will be best suited for my situation.Here is what I need.
In my app I am having a list of events. when clicking on any event from list, it will take user to event details page. On that page I have a Remind Me button on press of which user will be notified few hours/days before event. I want to know which of the two approach will be better.
First Approach
I register an alarm manually with the system which will get trigger according to the time which I will provide at the time of setting alarm.
Second Approach
I should use a web service along with push notification and when push is received show notification to the user.
Upvotes: 1
Views: 90
Reputation: 104
The first approach is the best. If you go with the web approach there can be chances that the user isn't using data-plan. And yes it will surely work for multiple instances. Instead of relying solely on alarms. You can use the calendar API and set a reminder. You can set multiple reminder with alarms that way. I hope it helps.
Upvotes: 0
Reputation: 7137
the first approach is sufficient. A local notification is all you need in this case. Using the second approach is definitely overkill. The benefits of the first method are it will work offline and it save you cost to send a remote notification.
Upvotes: 1