I am creating a reminder application that will allow users to remind user to send sms or email. at any day in the future.For example a user wants that the app reminds it for the birthday of a friend in the future.So the app would remind the user that day and show the user some prestored text to send as sms or email.
Can you suggest a good way to schedule these reminders for my app?
One of the ways I came up with was to schedule local notifications each day but I don't know if that would work.
Related
I would like to add a feature to my social app, which can send a push notification to a specific user, is he's not active.
For exemple, if the user has not logged in for 7 days: I would like to send him a push notification "Hey, it's been a while since you've logged in! Come see the new posts".
I know how to send a push notification to a specific user (that's not the problem), but I don't know how to create an automatic function which is able to know if the user didn't logged in for 7 days.
Do you know if it is possible ?
Ps: I'm using Firebase.
You can use local notification here which is good solution I guess.
Whenever user open's the app schedule the local notification of after 7 days from current date. ( Make sure to remove previously schedule notification before adding new one. )
In this case if user open the app notification will reschedule automatically else notification will fire based on last schedule of it.
I did this way in one app and it worked as I explained.
I think this feature can be executed on the Front-end side. All you need is about Local Notifications. When the user opens the app, you will create a local notification for next 7 days and delete the old one in case user open the app within 7 days.
I am creating an app using Swift and Parse as my backend platform. In my application a User can send an invitation to be connected to another user and as soon as they are connected the app should send notifications to remind the user about his friend’s birthday.
In this scenario I have two moments in which the app should send a notification:
1- When user A sends an invitation to user B, user B should receive a notification
2- When it’s user’s B birthday, user A should receive a notification and vice versa
I created a Parse object called AppNotification that is responsible for storing information about the notifications the user should receive. So when a user sends an invitation to another user I am adding a line in the AppNotification table, the same happens when it’s a birthday of a friend. Using this I can calculate the number of unread notifications and show it to the user in the UI using the components badge.
My question is more related to the best way to send the birthday notification. What I am considering is:
1- When user A sends and invitation to user B I have to send a push notification to user B.
2- As soon as the users are connected I can schedule local notifications to remind them about the birthday. This solution would use Local Notifications instead of Push Notifications.
3- Or create a Job in Parse that will be executed every day and will read all the users whose birthday is today and send a push notification to his friends. This solution would use Push notifications and I would not need to worry about scheduling local notifications.
Between the points 2 and 3 which one is the best solution? Is there any other approach I could use? When should I consider using Local Notifications other than Remote Notifications?
Thank you in advance.
Regarding points 2 and 3: there are pros and cons for both options: Having the reminders as local notifications is basically what your local calendar app does, i.e. you don't need a connection the Internet / Parse. However: what happens if one party (A) decides that she no longer wants to be a "friend" (of B)? Should notifications still be sent? If not, you could easily delete the scheduled notification on the server. This would also ensure that the other party (B) wouldn't receive notifications of a former friend (A) if she didn't open the app in the meantime and synced the list of friends.
There are of course more pros and cons, so it is really a matter of your preference and possibly other constraints (e.g. should an active internet connection be necessity?).
We have an app with 100.000 users. We want to send weekly notifications to all of them at one instance.
We've read all the documantation and sent notifications to test users one by one. But unfortunately we wewren't able to send them all at one instance.
Any one can help and show us a way to do that?
Thanx
i am developing a Facebook application using PHP SDK. According to FB Developer docs, notifications can be send with this metdod;
POST /{recipient_userid}/notifications?access_token= … &template= … &href= …
but This Methot let me send notification to user with "{recipient_userid}" value. But i am trying to send all users a notification. How can i do it?
By finding all members who is using Application and in a loop one by one Notification sending?
thank you for your Help.
I haven't try this yet but i think facebook batch requests is the answer.
https://developers.facebook.com/docs/reference/api/batch/
I frequently have to send notification to all my app users (about 30000 users) and it takes too long. Sending by one by method can't let you send instant notification for all your users, if it works, then it will be also possible.
Please provide me the code for sending sms on a particular Date and time in iphone.
Please suggest me the best way to do this.
I want to send sms after saving value in sqlite database like ph no. name, message.
Thanks in advance.
Apple has gone far and gave the programmers a way to present the end user with an SMS sheet (just like an e-mail sheet) , that they will have to approve (press send) in order to send SMS from a 3rd party app.
The reasons are mainly user privacy (as some apps on Android actually send SMSs on the user's behalf).
The best thing to do , in this case, is :
Create a local notification , that will remind the user that they need to send an SMS.
Upon launch (application:didFinishLaunchingWithOptions) present the user with a prepared SMS sheet , so they'll just need to tap 'send'.
For more info , look at MFMessageComposeViewController class reference.