Send push messagefrom PHP server on localhost to client on android - php

We are facing issue with push notification kind of feature in intranet.
we have PHP web server on localhost and client on android application.
We want to keep all devices updated even if there is update form any device.
here we can update server from client using web service but what about server to client notification.
We are using intranet only not internet so is there any push notification facility for such scenario. Because server needs to send update on all android devices if there is any change

Related

Firebase app server in php without NPM (Node.js)

I am using firebase database for my chat app and now i want to send notification to my app from my server (Without firebase console). So i want to send notification whenever firebase database triggers with related data, As i know so far(May be i am wrong.Please correct me) if i want to listen realtime database trigger i need to use firebase functions and on App server i need to install NPM commend line tool to listen firebase database trigger on app server which later made post request to FCM server for notification.
So, My issue is my server doesn't support NPM and node.js so i can't install and listen change on firebase database from app server. i during my research i came to know few php sdk which send notification but none listen change in firebase database on app server.
Is there any other way around (PHP) which can help me to listen change in firebase database and by this i can make request to FCM server for notifications.
Regards
Ritu

Why use .pem certificate in apple push notification not p12

I am creating a web portal using laravel framework to which one of its functionality is to send remote push notification on IOS App remotely. Many article in the internet is saying that we need the pem certificate file not p12. Why?
My co-worker who is developing the IOS mobile app, says that he is using the p12 certificate to get the push notifications from the Azure portal and successfully send push notification.
Is this because that he is pushing the app locally? Meaning the app directly sends the notification? And I am pushing notifications remotely from the web portal? Is there any difference when pushing the app remotely and locally?
Seems you are using Azure Notification Hubs. In Azure's official tutorial, they are obviously using the .p12 push certificate to configure authentication. So I think you don't need to worry to use it.

How to Send notification to mobile devices from localhost wamp server using wifi connection?

I want to send notification to all mobile devices that are connected to the same WIFI point, the laptop is connected. Is it possible in php to detect the mobile devices connected to the WIFI and send notification as well as share the android apk package to all those connected android mobile device.
How to establish a communication between computer and android mobile device using wifi? And one important thing WIFI is only for local network environment [No Internet Connection Available]. How to achieve this using php?
Note: Application is not already installed.
Thanks in advance.
First of all, if you want to send a notification, your app should already be installed in the device. If you are looking for the same, go through this link how to send a GCM notification. And then if you want to share any files, you could just send a link via GCM and download it in the mobile. It's not clear in your question if your app is already installed in the devices or you want to send the same apk without any app in the mobile.

Testing PHP Web Service locally by using android app

I am new to web services and planning to design a php webservice for my android app on my local machine which will send some user informations to database and generate some JSON data. But the problem is i am little confused about how to test it.
For example lets say that my webservice will locate on my local machine like below http://localhost:80/webservice/register.php
And my ip address is 192.168.1.X
Than is it possible for my android app to use this web service by using this url http://192.168.1.X:80/webservice/register.php
Normally since webservices are on the internet any program can access them. But i thought that i can test my webservice with my android app since both my pc and android device are on the same subnet.
If someone make things clear and tell me a way for testing a web service locally i appreciated
This is possible to call the web service in the local network also from the android app. But Your device and Your server on which Web Service running must have on the same network and Your firewall or any proxy server must be off on the server.

Make the Android app as a Server..?

How to make the android app as Server. I installed web server in the Android device and tried to call the service from the php which is the client. Its telling that it is unable to listen to the socket. I Implemented SOAP to send the request from the Php client to the Android server. Any suggestion.>?
Or is there any other method.? other than TCP socket listening.
please read below link fetch data from server to andriod mobile
http://codeoncloud.blogspot.in/2013/07/android-mysql-php-json-tutorial.html

Categories