real time notifications with Laravel backend and android FrontEnd - android

My application is simple just alot of posts and every post has many comments.
I want to notify users when a comment is posted with a real time notification method.
I use laravel for backend and android for frontend , i found something called pusher , is there any method better than pusher for my app ?
or this is the method to use now for my app?

Pusher is a paid service the better option is Firebase Push Notifications which are really easy to use and free of cost for large amount of usage.
It also provide a lot of customization and easy to work with it.

Related

Android push notification without firebase

I want to send android push notification to the selected user without using gcm or firebase. The application is already built without firebase. Now I need to integrate push notification too.
Question:
How it's possible without firebase?
Actually I want a feature that, when an admin update the value in the one field in database table of particular user, the that user will get a push notification regarding the update. How it is possible?
The way is to create custom Service https://developer.android.com/reference/android/app/Service.html , which is holding connection via socket or polling some remote server with intervals.
But, I suggest that Firebase service is more advanced and optimized in battery consumption and, particularly, in utilizing the sleep mode. It's not trivial to make a service which will have fast response and CPU consumption. I think that a custom service development will lead to native (C++) coding of networking routines libs.
Also, take into account that Firebase provides own Authentication service with ability to seamless convert your anonymous user to registered. There is a lot of pros of Firebase services. And cons are: your users have to install Google Play Services, if your app will grow - you will pay to Firebase.
Look here Android push notification without Google service
It's possible using VAPID authentication.
Google for VAPID and you will find a very tortuous road that could lead to the answer you are looking for.
another option is Gotify. Gotify is self-hosted open source notification solution that you can use it to send push notification to your android app without need of Firebase.
with help of UnifiedPush you can receive push notifications in your android app.
you can easily host Gotify server on Docker and use it's Api or cli,... to send notifications.
here is a good article about Gotify: https://www.linux-magazine.com/Issues/2020/230/Gotify

Building an Android notification server

Is there any documentation on how to build a custom notification server for Android? I am currently using GCM but due to the nature of the app and the fact that notifications are a very important feature in my app, I would rather implement this service internally so that I can control the throughput and not have any artificial limitations (even if it's hundreds of thousands of notifications per day). I also would like to use the same notification server later on with the iOS version of the app and for that reason, a custom built notification server is much preferred.
I would ideally like to know what's involved in order to write a similar messaging system (on the Android front-end). To further clarify, I would like to understand how (on top level) the GCM notification internally works on Android and how to replicate that functionality on my own.
Any help would be greatly appreciated.
Thank you
for the last 3 months I feel the same way as you do.
1, you should read this first mqtt.
2, and give yourself 1 hour of watching this
3, theres alot of examples out there on how to integrate client and over here for the server.
EDIT: some success stories here from facebook.
Its worth a shot. :) hope this will help you :)
I think Pushwoosh does exactly what you want to do. There also exists UrbanAirship, but unlike Pushwoosh UrbanAirship's service isn't free.

How to send automated Push notification using Pushwoosh in android

I have asked this question before but no answer. I successfully integrated Pushwoosh into my android application and their service has been wonderful, but now I want to make it automated because in one of the section in my app, there is a blog that is constantly updated using a Json Webservice. What I want to achieve is this, I want a push notification sent to users on the app, when there is an update from the Json web-service. Is there an online tutorial on this and how to achieve this, I would prefer if its very explanatory. I have searched online for a while now and i have been unable to come up with anything meaningful.
I learnt from Pushwoosh pricing site that we need to pay minimum 39Euros for subscription and only then we get access for RemoteAPI with which we can push data from our server. This facility is not available for free version. In case you have implemented this, kindly share some steps for the same

Android> Google Cloud Messaging vs simple polling for server changes

Creating an application that needs to be updated when a user registers on a web app. The simplest solution to me seemed to be to integrate a simple client side polling mechanism. But I've read recently about Google Cloud Messaging which would eliminate the need for polling, instead 'pushing' update events to registered devices.
This seems like an unnecessary addition of another layer of complexity, since the GCM server would act as a mediator to the real server.
Can anyone who has used GCM comment? Is it useful in this simple use case where the application is only updated once, or very infrequently?
If I should do something similar, I would integrate the MQTT protocol in my server and in the mobile app. It is explicitly designed for machine to machine. You can find references in the Mosquitto project web page
GCM would work fine for you, instead of polling the server where there may or may not be any new data wasting battery in the process where GCM you would only send a push when there is new data to get so the battery is not wasted on unnecessary calls to the server.
that being said google does not guarantee that any device gets the push so you need to take that into account

PushNotifications - How to Implement

I am a newbie in android. I have developed few applications, but all are plain and simple, just used the built in features of android.
I was asked about push notifications, in one of my interviews and I decided to have a look at what Push Notifications are. I understand the concept of Push Notifications(I think), but whenever I read the term "Server", it's freaking me out.
I understand all the client side coding, but I don't get how to implement the server side coding. I have seen some people use XMPP, MQTT, etc., What are those? Here is my scenario and what I want to know..
Scenario ::: Let's say I have a website, with a table (the values are retrieved from database), where I update a few columns every day. I want these updates to be reflected in my android application. So, as I have read, push notifications can tell the application that there are updates available. Good. I am fine till here..
When the application gets the notification, should my application, contact the website and get the latest information? or will the updated information sent through Push Notification? I guess, my application would be contacting the website and get the information. Now, how do I get the data from the website? Should I get the source of the page and do some kind of parsing or something?
I will be asking more questions, as the experts clear my questions...
Sorry, if my questions are too naive, but this is the only place that can help me...
Push Notifications means Google Cloud Messaging for Android (GCM) is a service that allows you to send data from your server to your users' Android-powered device.
You can refer to this documentation
Google Cloud Messaging for Android
GCM: Getting Started
And there is also Demo App Tutorial given
in your case you need to create HTTP web service for getting data from the server.so when you get notification about update on server side.you just need to call this web service and get the data you need to update

Categories

Resources