I am currently working on an web application, which need to implement a notification system, just like Facebook and Youtube does. (Not mobile PUSH Notification. Just to show how many notifications are in the notification couter and, when soneone expand it, show all notifications. Just as Facebook) What I need to know is, what is the following best method to use.
1.Websocket
2.SSE
3 XMPP
Our application is on budget and, we are running it on a VPS server.
Related
I need to add server side logic when a user buys and cancels a subscription. To me this seems like a basic feature that many apps probably use. However as it turns out it's not that simple to setup up the need webhooks.
My App will be available on android and iOS, so I will need to configure both, which is why I thought about using RevenueCat. But it turns out, this is a paid feature for $110/month, which is way too much for a/my new app. This is probably the biggest time saver for RevenueCat compared to using the official InApp Purchases packages, so I don't see why they would make it a paid feature.
Anyways what the best way to handle webhooks with the Play Store and the App Store? Any Guides and Tipps would be very helpful!
Apple and Google both offer server-to-server notifications that will notify you when a subscriber cancels.
Apple guide: Enabling Server-to-Server Notifications
Google guide: Real-time developer notifications
If you have your own user Ids, they won't be present in these server notifications so on your server you can save the user Id along with the transaction identifier of their original purchase. That way when a notification comes in you can look up the user from the transaction identifier and flag them as cancelled.
Alternatively, the RevenueCat API is included on their free plan so you can periodically poll their GET /subscribers endpoint to get the latest subscription status for a user. This obviously won't be real-time, but may be enough for your use-case.
Update: I decided to solve this issue similar as #enc_life suggested with the RevenueCat API. For validation the purchase, I send a request to my server, that checks with if the user actually bought the subscription. For canceling the subscription, I execute a function everyday on my server, that checks for all subscribers if the subscription is still valid.
I have a website running Laravel in the back-end, where users can create reports for other users.
When the report is created I would like to send a push notification to recipient user's desktop.
Do I need to use services like Pusher, OneSignal?
Any useful site with examples would be appreciated.
Your question
You could use Pusher, Redis/Socket.io, Pubnub, etc. Which one to use? well, this is more an opinion-based question.
These services broadcast events, then in your client apps (like your web front-end) you configure the client-side libraries of the service you choose to subscribe (to channels) and listen to those events. The documentation explains it better.
Examples/tutorials
Pusher
This is a tutorial published by the Pusher team.
Redis/Socket.io
This one
is a Laracasts series about this.
Just google.
Update
There is a Laravel-specific alternative, a package created exclusively for Laravel:
Laravel WebSockets
This is the post talking about the package and its inner working.
This is the repo.
Here you have the documentation.
If you like to show Native Desktop notification then i would suggest Web Push notification. In this way once user subscribed to push notification ,they will get real time notification and does not need to be on your website.
https://github.com/laravel-notification-channels/webpush
I'm working on GSuite application and wondered how my backend can be notified when new domain admin installs my app?
You can use the license notification api to retrieve a list of current installs. https://developers.google.com/apps-marketplace/v2/reference/licenseNotification/list
After installation the user will probably start or setup your app. You could add your own webhook notification when the user goes through this First Run Experience. (This is what we did)
There is another thing you might be able to pull off: As far as i know, an event is fired to Google Analytics on install. Maybe you can add an alert/webhook in Google Analytics.
However, i was having some problems with the events to show up in GA in the first place.
I’m building an iOS app that utilizes Uber’s API and Parse. After a user requests a ride in my app and the ride status changes, I’d like to update the in app screen and send a push notification. Uber’s docs say to use web hooks for this. I’m trying to figure out how I would do this if I’m using Parse. As far as I know, a Parse backend doesn’t have the ability to receive POST data from the Uber web hooks. I was thinking of making a small express server that would receive the web hooks POST data, clean it up, and send it to Parse’s API which would in turn send it to the client as a push notification. Is there a better way to do this?
I think you're on the right track. It looks like there are some projects in the Parse OpenSource Hub you could re-use for your purpose.
The alternative is to simply do a GET /v1/requests/current every few seconds within your app.
I have been developing in Windows Phone 8 for a couple of months. Currently, I am developing an app that consume some XML to show data. I know how the Toast notification works in WP8, however my doubt is about the following:
In the App I am working on, I would like to implement a kind of Toast Notification when a new data is available (from the source where the XML is extracted). So, is it possible? If so, how to implement it in WP8?
I don't know if you are familiar with the App of dictionary.com. In that App, there is an option to enable the notification for the word of the day. So, every day I recieve a different word in english. When I click in the notification I can see it's meaning.
Any clue, link, post, code or suggestion would be very appreciate
Thanks in advance
Regards!
There can be many ways. My idea will be to use Azure Mobile Services. To explain, let me take same fictitious Dictionary.com example. The WP app will be bound to Azure Mobile Service and it will show all the words fetched from that service. Whenever, I add a new word to this service, using Push Notifications, it will send notification to all my users who've installed Dictionary.com app, stating new word is added.
You can find more information here: click here