How to push notification to mobile (Android) - android

I have a question about Push Notification,from odoo to android
i want something like this
https://www.youtube.com/watch?v=TDa8KLGQt2I
I am searching for information about custom push notification. I want to implement a tunnel between server(odoo) and devices (Android ). When it comes a time server should send information to device (App).

Related

How can I test push notifications using Testcafe

My organisation is looking at implementing 2 step authentication using push notifications sent to a mobile app on Android or IOS and I am struggling to automate the associated scenarios within our Testcafe testsuite, which include
enabling 2SA and connecting the mobile device via QR code scan from the web page and push confirmation
Login, where push notification is sent to the mobile device automatically after success username/password authentication
disabling 2SA via an automatically sent push notification to the mobile device
Is it possible to automate these scenarios using Testcafe, maybe using some mobile emulator or 'catching' the notifications at the API? To my knowledge, Testcafe is foremost targeted at browser testing and can also do API calls, but not consuming API messages without an associated call.
If you mean mobile push notifications (not web push notifications via Push API), there is no way TestCafe can access them since these notifications are native.

Android Push Notification Server Implementation

I am thinking one of the following technologies to use to build an Android Push Notification Server (not to use Google Cloud Messaging/GCM neither FCM):
Atmosphere Framework (http://async-io.org/)
Eclipse Mosquitto (https://mosquitto.org/)
The overall goal of this project is to allow Android application using the Custom Android Push Notification server be able to receive and display notification like this:
The first question would be: if an Android application does not utilize GCM or FCM would it be able to display notifications similar to those that use GCM or FCM?
Then if we use either the Atmosphere Framework or the Eclipse Mosquitto as a Push Notification Server would it be able to send push notification on an Android device without relying on GCM or FCM?
Also, I assume that if not using GCM or FCM then it is not possible for the registered Android device to receive a push notification from the custom APN server if the application that uses the custom APN is not running? This is correct, right? If so, then what would be the work-around? Make sure the Android application is running in the background?

Push notification in android using SignalR

I am working on an android application and basically, I want to send a push notification when the user is connected to a local server as well as when connected to the internet.
I see SignalR as an option, but as I am new to this, I want to know can signalR be used to send Push notification like FCM? Also, can it work if the user is offline and receive it when he comes online or gets connected to the local server?

Send notification from Android app to any other device

I am developing an Android application that can send notifications (not "push") to any other Android device. Apart from Google Cloud Messaging (GCM) are there any alternatives to do so?
I do not plan to use GCM. My only requirement is to send the notification from my app to any other device via either Bluetooth or WiFi.
I have tried using the basic Notification API for Android but I could not send a notification to other device. It shows me a local notification.
this may helps https://www.firebase.com/docs/java-quickstart.html
firebase sync the devices and whatever you send it to server it automatically pushes that in other device

Implementing one to one and group chat in android [duplicate]

This question already has answers here:
How to make a chat application in android? [closed]
(6 answers)
Closed 9 years ago.
I am developing an Android app in which I have to implement chat messaging. I would like one to one chat or a group chat.
But I have no idea how to start. Please help me with this stuff. Any help will be appreciated.
A simple chat mechanism will have 2 basic functionalities
Send the message to server (with info about the recipient)
Receive the message from server (designated for my user name)
First step is simple, we can create a web service which will accept the message with additional information about recipient(s). We can create it using any server side language.
Step 2, that is fetching the message from server can be done using 2 techniques, Pull the message (using polling) from server, or Push the message from server to android phone
Polling: In this, the android device will keep accessing server after a few seconds to check if there is a message available for user. This again can be implemented using a simple async task at the client side which will keep calling a web service after say 2-3 seconds. This is fine to use if we are planning to enable chatting only when user is accessing the app (no notifications like gmail or facebook), so that we can kill the polling service when not in use (otherwise it will eat up resources).
Push notifications: a better option is to use push notifications. Android provide Google cloud messaging or GCM (http://developer.android.com/google/gcm/index.html) which will help achieve push from server easily. Otherwise you can try a third party API like urbanairship or pushwoosh depending on your requirement. Push notifications will help the user to receive messages even when he is not using the app.
So in nutshell, a webservice to receive the messages and a push notification mechanism should be sufficient to implement a chat service in android.
Little bit about UrbanAirship
I used UA in one of my projects for push notifications as I needed to support both iOS and Android. If you just want to support Android GCM might also be a good option.
Coming back to UA, check this for sample code and usage: https://docs.urbanairship.com/display/DOCS/Home
The way it works is simple, when someone installs the app and is connected to internet, app registers itself to the UA service. A unique code is specified for each installed app (this is the time when you can capture the user name and unique code and store somewhere in your DB). Next UA provides an API using which you can push a message to designated recipient(s), using the unique codes which are available with UA. These messages can be received by android app and used as per the requirement. Even if the app is not running we can show a notification just like when we receive an email or a message
You can use an existing platform like Scringo. It gives you a one-on-one chat as well as group chat (both the client and the server) as well as the push notification service.

Categories

Resources