Realtime database interaction iOS [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am creating an app where a I want a user notified in app whenever anyone they are following posts a picture. So lets say user A follows user B, when user B posts a picture it appears in realtime on user A's screen. My question is: Is this kind of thing done using push notifications? As in make a request to get the image when notification is received or is it better to be using sockets or queues?

This is one of the most common use cases for push notifications. Your iOS app asks the user for permission to send notifications, and then registers with Apple to receive push notifications. Apple provides a "token" that is a unique identifier for that notification subscription, which your app will then need to send to your server. When it is time to notify the user about a new photo, or whatever, your server uses Apple's APNS services to send the notification, using the token to identify the recipient.
So, the app and the server use multiple Apple-provided APIs to create the communication channel, and then you are free to add whatever logic you want to determine the timing and content of the notifications.
Before trying to implement anything, I'd suggest reading through the entirety of the Apple's Remote Notifications Programming Guide to a solid understanding of how all the pieces of this technology fit together.
Are there other technologies you could use? Maybe. For iOS apps, Firebase is essentially a more platform-independent wrapper that is built on top of the Apple notification system described above; under the hood, it is still using APNS and requires some of the same initial steps to configure your app. Socket-type technologies could be ok for limited use cases but aren't the correct approach for general purpose notification delivery, due to restrictions with running the app in the background (among other reasons).

For realtime actions like that you may use google's firebase
also you may use push notifications to send the model which may contain a url of the image and when received load the image and display it,Also same functionality can be accomplished with socketIO

Related

I want to send pictures and messages to users phone numbers without making them install the app. I am using firebase for storage ( swift iOS) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
currently twilio.com offers a service where you can send messages and pictures through a phone number, I want to know is there any API or service that I can use to send my stored user data to their cell phone without making them install the app, I am not trying to Create a separate admin feature.
I don't want to create an admin feature,I want to see if I can send data to user phone-number without making them install the app.
There is no way to send push notifications to a phone that doesn't have your application installed. That would be way to much of a spamming machine. Essentially by installing your app, the user is taking the first step to opting in to your push notifications.
If you don't want to develop a native app, but are willing to send your user to a web page you create, you can consider implementing web-based push notifications. In that case you're using a web app, instead of a native app.
The only way to send messages to a phone without an app installed is through SMS/MMS.

Communication between multiple devices [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to make a turn based application. Such that users involved will perform some operation and when their turn is over then next user should get notification.
Now I will be showing standard message like "It's your turn". So, how can I trigger this notification from my device and pops up notification saved "locally".
I did some research and came across various options like Firebase cloud messaging, Firebase push notifications. But for Firebase push notifications, we need one extra server. Will I have to deploy server just for that?
And Can I use FCM for this?
Any help or references would be appreciated.
I don't know whether you are using any database for this (online) turn based application. It would be easy for you to trigger firebase notifications using firebase cloud functions. Check this link
You can create a value in database suppose turn and update the value in database depending which user's turn. Every time using cloud functions onUpdate you can trigger and send notification to the user. in order to send notification to a particular user you have to save their token in your database.

Tools/Solutions :Remote push notifications iOS for users [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I've got a database who store the device Token, country Code and language of my users and I need to send remote notifications for all the user.
What kind of tool can I used to send all notifications by country with a batch?
Thanks,
It's not quite clear what exactly you are trying to achieve but here are options based on my guess, ordered by relevance:
In terms of notifications you can use:
Apple Push Notification Service
your server controls when notification is happening
works for all app states (open/background/closed)
when app is closed user must accept notification to open app
will bother user with system notifications
does not guaranty delivery
requires extra work on server-side and generation of certificates by hand
Local notifications (some relevant info)
your app controls when notification is happening
works for all app states (open/background/closed)
when app is closed user must accept notification to open app
will bother user with system notifications
If you want updates to be invisible to user and just update app you should employ NSURLSession and NSURLConnection and work up from there. These might be of interest:
Polling updates on behalf of app with background fetches
your app controls when update is happening (if iOS doesn't mind)
doesn't work when app is closed
invisible to user
should be optimized for battery life
Keeping connection open (search "ios SocketRocket" for example implementation)
your app totally controls updates
won't work when app is closed
drains battary like crazy (so not recommended)
And then there is oportunity to missuse Voice push API in a interesting way

How to Send iOS push notification to PFUsers [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am using Parse.com as a backend for my iOS app. And in this app users can favorite items. Which is then saved to Parse. I want to write some script, that will check what users have favorited a certain item, and if they have favorited a certain item to send them a push notification. And I would need this to run everyday. And I am wondering what language or type of code would be best for this. If I should use cloud code, or parse says they have a Javascript SDK.
I am new to use push notifications, so I apologize if this does not make much sense.
Thanks a bunch for your help in advance.
So first of all, to enable Push notifications for your app, you're going to have to follow these steps:
https://parse.com/tutorials/ios-push-notifications
This tutorial gets you all set up with parse push notifications in your app, but that doesn't answer your question. To answer your question, you probably want a cloud code script that runs every day and creates a PFQuery based on your stored items that you have, and based on if a user has favorited an item create a PFPush instance for that User's installation. You can then create a directed push to that user. I have personally never used Cloud code for push (only client side), but this should work. Since Cloud Code is just javascript, you can create a scheduling type event in cloud code and run your push from there.

How can I send push notifications to iOS without writing my own application? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I would like to send push notifications to iOS-based devices, but I don't want to write my own app. From what I've gathered so far, to send a push notification using the Apple Push Notification Service I need to use the SSL certificates that were used to sign an application.
Basically, what I'm looking for is the iOS equivalent of Notify My Android, an app that you install on your Android device that has a web service with a simple HTTP API for sending notifications.
You can try :
Boxcar : http://boxcar.io/
Pushover : https://pushover.net/
Use https://pushed.co/
SEND PUSH NOTIFICATIONS WITHOUT DEVELOPING YOUR OWN APP
Pushed allows you to send real-time push notifications to
iOs, Android and Desktop (Chrome, Firefox & Safari) devices.
(Just found it and also found your question.)
This is not possible under iOS. You only can send push notifications to a specific (your own) app.
When you set up your push notifications for the app, Apple is very strict about the usage. You can only send push notifications to that specific app, and only from your developer account and profile.
There is no way to have a third party program for this because of these restrictions, so no, this is not possible.
For more information check out the Apple documentation on Push Notifications.
An option can be to have your users install telegram app and have them talk to your bot. The bot can push notifications to individual users and can even listen for commands.
did you find any app's that could do what your after? If not, check out EasyAPN on the Mac App Store or website http://www.abdullahselek.com/2013/08/08/easyapn/.
Its an app where you put in the token and payload and press sent (it will detect your certificates stored in your key chain which you can select from).
You can also do this with PushBullet (which has a web API) or IFTTT (which does not seem to have a public API, but has a bunch of other triggers).
As #yinkou and #DGund pointed out, none of these push notification platforms (Pusher, Boxcar.io, pushover.net) can work around the Apple Push Notification rule of having a registered app.
So the answer is a DEFINITIVELY NO. YOU CANNOT send iOS push notifications without your own app.

Resources