I am hosting my website on an amazon ec2 instance. When someone fills a form i want to receive a push notification on my mobile device containing the information submitted. Is it possible to achieve this without making an app?
Related
I'm doing a tiny personal project involving an Arduino and a PHP backend. I want to send a push notification from the PHP backend to my Android phone using Firebase Cloud Messaging. This question is specifically about FCM - I don't want to use any other services like Blynk, etc. I also do not want to send the notification directly from the Arduino, but rather from the PHP backend.
Can I send a FCM notification to my phone without having to create an app to receive it? I'm logged in with a Google/Gmail account on the phone, and I have no need to target any other users than myself.
Can I send a FCM notification to my phone without having to create an app to receive it?
No, this is not possible. It would open users up to some pretty hefty abuse.
In order to receive your notifications, the user must have your app installed.
Mind you, this can be a pretty minimal app, since the default implementation of FCM already displays notifications to the user if the app is not active. So really all you have to do is create an empty app that includes the Firebase Cloud Messaging SDK.
I have configured exim-dovecot-***webclient on cent-os for setting up an email application, wrote some web services in php for my mobile application need and now working on mobile application that will receive push notifications from server. I want to trigger/broadcast push notification to mobile application when email arrives. Although, I know all the procedure for sending a push notification to mobile device but unable to find the event/flag after what I can fire the notification.
I currently run an app in php zend framework that contains a real chat using node.js and socket.io, the chat is working really good, but i need to create a service to send push notifications using the pushwoosh technology, is there any way to send the push messages in the node.js server? or i have mandatorily to create a service in zend framework, considerating that chat is running in an mobile app too, and the messages should arrive even when the app is closed.
thanks for your help.
Sending push notifications on mobile devices cannot be done stand-alone and you must take in consideration that you have to rely on third-party services.
The concept is that you don't directly send push notification to your application, but you send the request to a third party service asking to send the push notification to your registered application.
For example, these are the steps you will go through to send a push notification to an IOS application:
An app enables push notifications. The user has to confirm that he wishes to receive these notifications.
The app receives a “device token”. You can think of the device token as the address that push notifications will be sent to.
The app sends the device token to your server.
When something of interest to your app happens, the server sends a push notification to the Apple Push Notification Service, or APNS for short.
APNS sends the push notification to the user’s device.
(reference: http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1)
So it's not as easy as you wish to. You won't directly send the push notification, but you will ask to apple in case of IOS or to Google's server in case of android to send it.
In most case, you will have to register as developer on their dev centers and get all the tokens and certification they ask.
Hi im working on a project who has an existing iOS app that uses windows cloud platform. Our task is to create a website for the app. One of the requirements is to enable to catch notifications created by the mobile app. For example if there is a new user, push notifications will be triggered and a website link will catch the notifications and save the data to a database. My question is, is it possible to catch a notification from windows azure push notification using a php script event listener?
I don't have any background on windows azure and i don't have any access to there windows azure account. The only thing they said is to give them the link of the script that will catch the notifications.
What are some steps thats need to be done?
Thank you
I'm not sure this is possible. Notification Hubs sets up communications so that you can send a notification out to a many different platforms at one time (Apple, Android, Windows Phone, Windows 8, etc.). Each device registers with the Notification Hub (or the registration is done for them by a back end) and provides a unique device ID, also known as a Channel URI. When you need to send a notification the Notification Hub then disperses that notification out to each of the correct Platform Notification Systems (PSNs) which then deliver the notification directly to the device.
I say all of that to indicate while it might be possible to register a listener that is not a device with the notification hub using a REST based API (You'd have to create a viable channel URI) I'm not sure there is any way to be listening as a php script to a PSN. Also, the registrations do expire from time to time and so you'd need to make sure to keep registering. Finally, no notification system is 100% guaranteed to deliver a notification. The device could be off, it could be in a bad reception area, bad network connection, or the PSN just doesn't delivery it for some reason, etc.
My suggestion is to take a step back and modify the code where the notification is being produced and send it both to Notification Hubs for device distribution, but also send the content of that notification to your database directly, or have them right the message to a queue which is processed in the backend to save to the database if the database isn't local to the code generating the notifications. This removes the notification hub involvement as far as your website is concerned.
If you really MUST look into the php script getting the messages then you can start by trying to figure out how php can receive messages from the PSNs, which is not an Azure issue. You can use the Notification Hubs REST APIs to register for them, but I'm very skeptical of that route.
I am developing a location based android app and I want that the app should send me the location data on my server whenever I request using a button on my web page. So how can I send a signal from my website to the android app so that it starts functioning only when I send a request ?
Thank you
The Google Cloud Messaging Service would be a good starting point.
Basically you need a Push Notification in your project. The push Notification will allow you to send a signal from website which will catch at mobile side and perform operation accordingly.