Push notification installation in server - php

I'm trying to get push notification for all the three mobile platform(Android, iOS, Windows phone). I tried looking for many push notification service. like pushwoosh etc... But all have sdk for mobile. Are there any open source that I can use in my server so that it pushed notification for all three platforms. I'm new to this concept. Please suggest. Thanks.

There is a project called pushd (https://github.com/rs/pushd) that you might be interested in. It supports GCM (Google Cloud Messaging) for Android and APNS (Apple Push Notification Service) and also Microsoft's push service.
pushd is a nodejs project that exposes an easy to use JSON/http interface. There is fantastic debugging/logging options.
EDIT: Microsoft has a service (Notification Hubs) that works on all devices which is free for 500 devices. Facebook also recently bought Parse.com which provide a similar service, although not free.

Related

Azure send Push Notification to Multiple Devices/Broadcast

I used AWS SNS to send notification on multiple devices, in AWS SNS i created some Topics and Subscribe Endpoint ARN (user device in AWS) to Topic and Publish notification on Topic to send notification to all subscribers by PHP.
Now i am switching to Azure, and want to implement same application in PHP, after some research i find out this link:
https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-php-how-to-use-topics-subscriptions
Is there any way to implement my requirement without using Service Bus. Also dosen't understand Why Topic and Subscription are in Service Bus and unable to use it directly. Or is there some reason to use it via Service Bus.
I am not familiar with AWS SNS, but I think what you're looking for is Notification Hubs on Azure.
Azure Notification Hubs provide an easy-to-use, multi-platform,
scaled-out push engine. With a single cross-platform API call, you can
easily send targeted and personalized push notifications to any mobile
platform from any cloud or on-premises backend.
You can check out the official documentation on how to use Notification Hubs from PHP, or refer to this sample implementation of a REST wrapper for sending notifications using the REST APIs of Notification Hubs from a PHP back-end.

How to send notifications to app users?

I'm new to android and php, I've been watching tutorials and implementing it. I'm making an app in which i want to send push notifications, I've come across many tutorials but some of them were only implemented on a single device where in my case i want to send it to all my app users(students who will be using my app). If there's any way to deliver messages via notification, I've made an app and in Live section, I want to send push notification inside an activity. How do i do it?
I've integrated firebase in my app but it doesn't support multiline messsage's. I'm fairly new to php, If there's any tutorial I could implement please suggest.
You can use Google Cloud Messaging as well as Fire base Cloud messaging
i am sure to help you this link for multiple devices
Google Cloud Messaging
http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
Firebase Cloud Messaging
http://www.androidhive.info/2016/06/android-firebase-integrate-analytics/

how to implement custom mobile push service

i just need to get some information about a solution i'm trying to implement.I have to write a push service that can be used to push messages to android and ios apps the project is an ionic app.
So far i have come across Google Cloud Messaging ,Firebase ,Pusher ,push.ionic.io but all of them are third party.
Is there any documentation that explain how to make such a push service using php.I have previously worked using rachet for websocket.As i understand this type of service must be based on websocket.
There are various resources available out there regarding implementation of Push Notification services in php. Let me point you to couple of those.
Simple Push service in php
Have a look at this.
So if your concern is implememnting Push noification on client side using ionic. You can use ngCordova's cordovaPush. You can find it here.
cordovaPush really works great both for android and iOS.

sending automatic push notifications in app from web service

i have made an android app for buying and selling of goods. Now i want to send notifications to all the users everyday regarding how many new items have been added. I have used php language for scripting.
I went through various sites but am confused.. Is using google cloud messaging service (GCM) necessary? will it send automatic notifications everyday?
I am confused. please help. thanks
I would say yes to the GCM in your case if you can have your own third party server running somewhere. The server can use GCM to talk to all devices running your app. The advantage here is that non of the app installations on many devices need to be connected to your server for this to happen. No background Service/IntentService running draining battery.
Read all about GCM and Study the client/server demo and you're up and running in a few days.

How to build an android Push Notification server in PHP

I am developing an application and in that application I need to implement push notification.
Can anyone suggest me how to do develop the server in PHP (Json, Zend Framework if possible) and provide me a good tutorial on push notification?
"Android Cloud to Device Messaging (C2DM) is deprecated". Its new version is Google Cloud Messaging (GCM). There is plenty of information and source code examples on developer.android.com.
Here is another useful post for Android Push Notifications.
Whenever you want to send message to an android device your Server contacts -> Google Server Contacts -> android device .
So you integrate your ZF application with google c2d api . Here you can find one such implementation of this type of integration with ZF
http://blog.digitalstruct.com/2010/11/21/android-c2dm-with-php-and-zend-framework/

Categories