I'm working on app that has realtime components and I'm wondering if I can use apple's push notification service for this.
How many messages can we send? Can we use it for something like a chat service?
If not what are our alternatives?
Apple uses push notifications for their new chat service, so yes, you could use it for a chat service.
There are no good alternatives to push notifications. You'd have to manage your own socket and it would only work while your application is running.
Related
How can we send message notification for ios using node js socket io while the chat app is closed?
In fact, when a simple message is sent, you will catch it with socket.io and you will send notification via push.js using it.
Push.js: https://pushjs.org/.
It is also explained in detail how it is done on the site.
But if you still want a simple one, here it is:
Push.create(data.user_name + " | Chat", {
body: data.desc,
icon: "https://pushjs.org/images/icon.png",
tag: "chat",
link: "http://localhost:8080/chat",
timeout: 5000,
onClick: function () {
window.focus();
this.close();
}
});
This can be achieved by push notification integration in iOS app.
There are many third parties available which can be integrated into the iOS app and on back end server.
FCM
APNS(Apple's native push notification service)
Pusher
One Signal, etc.
The above are the some name of the push notification services that can be integrated into app and backend server.
You need to more dig into "How to integrated push notification in iOS app with Node JS backed?" so just google it you will get the may tutorial on the internet.
Personally saying, we have integrated push in one of your iOS app with Node backed with FCM.
Fundamentally iOS supports Push Notifications via APNs (Apple Push Notification service). It’s possible to directly interface with APNs and send messages, however it can often be simpler to instead use a third party service to handle the complexity.
Ably, FCM, PubNub and Pusher are all common solutions which work well in combining an existing messaging system with Push Notifications where needed. If you’re in need of just a notification system, and have no other communication systems, a library for just notifications such as Push.js will work well.
So, i'm developing a IOS VOIP app, and find out that i need to use a Push notification server to make my app work on background to receive incoming calls and etc.
I searched and dont find anything about how can i set-up, develop, use, find about, a push notification server/gateway
I found some server who are paid and dont help me on anything, because i can't pay it right now.
I'm sorry to write a question entirely of text, with no code, but there's no code to use right now.
Yes i read the documentation, and articles, and etc, but they just talk about "Setup your server and send a push to apns", nothing useful about what i should use or how can i set-up a server.
Here's what i already found about it:
Mizu VOIP push gateway
How to create a native iOS app that can receive VoIP push notifications
Session Talk push gateway
Mizu VOIP Push notifications
Push notifications docs
In case doesn't exist a non-paid alternative to a push notification server/gateway, is there a workaround to this problem with the newest IOS changes? (I found something like a workaround said by the Zoiper team here)
Thanks in advance!
[EDIT]
The solution was using the Flexisip proxy server.
I've set up an app to send motion data from one device to another using websockets (Starscream library). Now I need to send push notifications when a critical event happens (when app is minimized), does it have anything to do with websockets or I just need to use something like Pusher?
As you said, I think you should use Pusher or any other external service (Pushwoosh, Onesignal, among others) to send push notifications to the users. You can't do this with websockets.
I recommend you to use OneSignal (it is free and some big companies like Uber or Zillow are using it)
EDIT:
I think you can't send a push notification from one device to the other one. One device (let's say Kid.app) should notify the server of an event, and then the server will send the push notification to the other (Parent.app).
Check this link, it will be useful for you.
I am considering using EventSource (server-sent events) to send notifications to my iOS App users, instead of APNS. This is great when app is active, but is it possible to ensure these users receive my messages when my app is not currently running on their device? Or is the only way to do this APNS?
If you need your events to arrive in real-time (like a messaging system), then APNS is probably your best bet. APNS is the only way to send realtime messages from a server to your app. However, it is wise to know that there are downsides to push notifications.
If you don't care about real-time events (not a messaging system), or if it's okay if you get the events a bit delayed, you can use background fetching to periodically poll your server for new events.
Objc.io has a great article discussing some of these: http://www.objc.io/issue-5/multitasking.html
i have an app and i'm thinking about implementing push notifications in it. however, i want to use remote notifications. i've tried Parse's push notification service and it's great and works well. You can type any text you want to inform your users about and just press send in order to be delivered to all your App users. On the other hand, i don't know if Apple has any such service that can facilitate the process of sending remote notifications. so which is better to stick to, Apple or Parse? and can i have the same service as Parse from Apple?
Yes, you can get the same services as Parse. You have to build your own server that will talk with Apple APNS. Just for example sending a push notification from your own server without using parse is here.
I didn't understand what are you trying to ask.
You can use Apple push notification service for sending remote content. With Any content related to your App.
Check RemoteNotifications for details. Parse is also using the Apple's push notification service.
Edit: For implementing your own servers for push notification check this tutorial : Push Notification Services