How, will I make my app automatically send a notification to a user when a button is clicked.
How to send a notification when a button is clicked in Xcode C
why would you want or need to send a notification? Notifications are for outside of your app
to let the user know there's new data or an event is coming up and so on. If theyre using your
app, your app should do something when they tap a button or other control When they tap
that control, not later.
Can you give an example of what you want to do, exactly? ...because it sounds like notifications may not be what you want.
For example I want to send a text message to another person. What I want is for me to click a button that would send the message to the other person and appear as a push notification even when they are not using the app. Do you know how i could do that by any chance?
What platform(s)?
If you have user A doing something that needs to result in a notification for user B, 'automatic' would be redundant, I think, given the purpose.
See the docs: Local and Push Notifications for Developers
For example, user A adds user B on facebook or comments on a user B's post. How do I make it automatically send a notification.