I have developed an app and it is published sucessfully on iOS and Android. I have integrated push using the App42 Push Notification API which works great, but is quite expensive. I am storing the device tokens on my peronal MySQL-database which is hosted on my webpage. I am wondering if there are any other Push Notification Services that supports sending of push notifications using PHP/HTML using device tokens and API keys?
I have researched following:
Parse
OneSignal
PushWoosh
PushWizard
Pushover
None of them seems to support sending of push notifications using PHP or HTML.
Nearly all of them support sending push notifications via a RESTful interface/web-service which needs to be consumed by your PHP.
Parse: https://parse.com/docs/rest/guide/#push-notifications
OneSignal: https://documentation.onesignal.com/reference#create-notification
I am sure few of the others also support sending push notifications via an API.
Related
I am developing an Ionic application, which has a NestJS backend. I want to send push notifications to the user, when he receives a friend request, or something similar, but my main problem is I am not using firebase (which seems to handle them well), I am using Neo4j. Is there a simple way I could handle push notifications in my case?
Also, I am not an expert in push notifications, so I was thinking, is there a way to send a push notification from my NestJS backend, when a certain endpoint/method is executed?
You can send push notification using OneSignal which support Nest you can check this plugin onesignal-api-client-nest
and for ionic you can check the official plugin from here
I am using AWS SNS to send push notifications to the mobile app built with ionic. Despite the fact that most of the times sending push notifications works perfectly, in some cases the push notification wasn’t sent and it displayed the same error(exception):
Aws\Sns\Exception\EndpointDisabledException Endpoint is disabled
Is there a way to re enable endpoint to AWS SNS after getting Endpoint disabled exception when trying to use Send Push Notifications with Ionic App?
Any ideas?
Thank you
I think I have found the error and resolved it.
It was because sometimes the tokens where mixed when they were sending to multiple devices logged with the same user account.
I have an OpenEdge database, I have created a REST Service and am able to CRUD to it from the outside World.
I have created a Nativescript app that can pull data from the REST service etc, but now i want Push notifications.
I know about the Progress Kinvey backend, and Firebase backend with their push notification features but i don't want to use them.
is there a way to create my own Push notifications on my REST server etc?
So first I would like you to understand how Push Notification works just to make sure we are on same page,
Once your app is installed, you can query for a unique token and save it in your backend for future use. Whenever you want to send a push notification, you have communicate with APNs (Apple Push Notification Server) / FCM (Firebase Cloud Messaging) in order to send a push notification to your iOS / Android device using the unique token you acquired earlier.
So now you must use Firebase as that is the only way you can communicate with Android, yet you may choose to communicate with APNs yourself. But in my opinion, it will be a overhead for you as both have their own protocols, you will have to distinguish your tokens between iOS & Android, use appropriate protocols etc.,
I would suggest you to go with just Firebase plugin (until you are super familiar with APNs already), so you don't have to worry which platform the token belongs to, update / revoke invalid tokens over time etc., FCM has pretty decent APIs & Documentation that can make your life easy here.
i strongly recommend you to see my answer here answer here.
from it:
when you want to pull anything from place_1(e.g. api) to place_2(e.g. browser_client) you most have an identifier of the
place_1_resource (which commonly is the uniform-resource-locator of
api)
when you want to push anything from place_1(e.g. notification_central_server) to place_2(cellphone_client) you most
have an identifier of the place_2_resource
if you don't have any identifier for a cellphone which you want to
send it a notification, your server dont know where to send that
notification so we need a resource_identifier_like for cellphones
which is actually a device_token_like and you have just one approach
to get this device_token_like and that is the FCM/APNS
I'd like to implement some push notifications from Twitter in my app. I can connect to Twitter's stream of user-related events using Sreaming API. Do I need some 'middleman' server between Twitter API and an iPhone app in order to push a notification to an app ? Maybe I can do it using Parse.com Cloud Code or something similar ?
This question may be helpful not only in the case of the Twitter API but also in case of any server that a developer don't have any access to.
To push a notification you would generally need a server of your own which has been configured to send a notification when some event occurs. If you are using Parse as a backend for your app, you can leverage their backend to allow you to implement Push Notifications or use a service like UrbanAirship
In the case of the Twitter API, you will need to implement some middleman in either case to get the data from Twitter for your user and parse it to see whether some event has occurred and then send off a notification either using your own custom logic directly to Apple's servers or using Parse or UrbanAirship (or some other service)
I went through the Apple api documentation related to Push notification service in iPhone and all the possible links I found through the google. So I've created the SSL certificate and have got a device token.
But after that, how to use this push notification service in an iPhone application?. Does anyone have any idea about this?
For server/remote push notifications - depends on what you plan to run on your server or if you are going to use a third party service to do it.
Here are some notes if you have your own Rails based server.
You can use thirty push services like PushBots