I would like to send notifications from my webserver to my smartphone, preferably through one of the popular mobile chat apps like WhatsApp, Viber or Kik.
Is there any known documentation or API or something, that describes how to send a message to these clients, for example using PHP?
Note that I only need to be able to send notifications to my own smartphone, so requiring specific info to identify my particular client (like cellphone number or something) is fine.
Yes there have been some, but whatsapp changed their security system and shut off the api - so there is no known way anymore.
For Example:
https://github.com/venomous0x/WhatsAPI and
http://blog.philippheckel.com/2013/07/07/send-whatsapp-messages-via-php-script-using-whatsapi/
There is a module Drupal WhatsApp
NOTICE: This module uses an unofficial API library for sending WhatsApp, which may mean that may stop working without notice.
USE THIS MODULE RESPONSIBLY AND WITHOUT USING SPAM BECAUSE THEY COULD BAN OF ITS SERVERS THE USED PHONE NUMBER.
Related
I tried searching these issues. Some sites say I need to do some stuff with php in order to make 3rd party server while others don't mention anything. some says it need JSON. Guide me please. PS I am a beginner and know java, XML,SQL only.
You should only need one server. The second server you are reading about may be the Google GCM cloud server? When I did a GCM project a few years ago, I had one server, it happened to be a App Engine instance. It generated events and sent them to Google via the GCM api and then onto onto the device. I don't remember it being that difficult.
I did have more than one server in the mix though, there were others that sent messages to the AppEngine server, but it was not required to send a GCM message.
Google Cloud Messaging (GCM) is a service that enables developers to send data from servers to both Android applications or Chrome apps and extensions.
So if you want to send data to the users of your App then you must have an interface or dashboard from where you can send some data (typically push notification) to the users of your app.
This dashboard (server from which you can send data) can be developed by using PHP or any script languages.
Now a though can come up in your mind:
"I am suppose to develop both the mobile app and the server then what
role does GCM play?"
Yes, GCM is playing a vital role indeed. The server we have to develop is just to design an interface so that you can type your message/notification and select the recipients. Rest of the part of (managing the queue, communication with the apps checking for authentication and all other stuffs will be done by mighty GCM )
In order to have an bird-eye overview you can take a look on this image collected form android hive
Server side coding is doesn't need you to be expert in php. So you can go through to this article. It helped me a lot to learn.
I've got an incredibly limited calling and data plan on my cell phone, and spend most of my waking hours in front of a computer with an Internet connection. With Google Voice able to route calls through Gmail, it seems silly to pay for minutes on my phone.
I'd like to use something like Tasker on my smartphone to change my Google Voice forwarding settings automatically so that calls are only routed to my cell phone when I'm not at a computer. The trigger rules are simple enough, but Google Voice doesn't have any official API for things like this.
Has anyone had any success with changing Google Voice settings via some hacked-up API? I've seen a couple that do things like place calls and send SMS messages, but all I need is to change settings, which the ones I saw didn't support. Perhaps a little documentation on how Google Voice handles web requests currently that I could use to change things from a PHP script that I could then call from my phone?
Bonus points if I can use some sort of long-lasting login token rather than having to store my Google password in cleartext.
I have built an ecommerce website in CakePHP and MySQL which takes orders and stores them in db. I've been told that I need to create a web service for sending notification to desktop/via email which would alert us of any order given instantly and would also provide us with order details. Do i need to study up on web services, SOAP, GET POST etc. or can I do it with some easier method? What would be a secure and fast response way of receiving such a notification from the web application? Thanks in advance :)
A webservice would be useful the other way round. If a third-party entity wishes to access your website as a service without accessing HTML pages, yes in that case, creating a webservice on your end will be useful.
I recommend you for instance to see the RESTful webservice interface to stackoverflow/stackexchange itself to understand this concept: https://api.stackexchange.com/docs.
In your case, I can't see how webservices would be involved. If you just need to send emails from your website, it can be done directly with the PHP mail() function, or using a mailer like PHPMailer.
Desktop notifications are an entirely different matter, because you need a client software.
I haven't dug pretty far in that topic myself, but here are a few pointers:
A popular Desktop Notification software for MacOSX is Growl which has been unofficially ported to Windows: http://www.growlforwindows.com/gfw/
There is a PHP API to send messages to Growl clients: http://clickontyler.com/php-growl/.
Basically I'm trying to emulate the process that the Facebook official iphone app uses to log into Facebook.
it seems that it may be sending a special header/user-agent to identify itself so after logging in Facebook doesn't require it to name the "new device", instead it's automatically recognized as Facebook for iPhone.
is anybody aware of the headers being sent or the method being used to do that?
That's not a header. The iPhone app is able to read the iPhone/iPod/iPad device serial number from iOS and it sends that information along with the request. It's not a user agent header, but the ID of the device itself as each apple hardware product has its own unique serial number. That is what allows you to "remember a device" with a lot of social apps.
But if you want to see exactly how the facebook app is sending the data, the commenters are correct. You would need to install wireshark (or another packet sniffer tool) on a computer on your network, disable SSL on the facebook app (which I don't think you can even do anymore) and then monitor the traffic from the app to see the request packets and their data.
I think a more important question is why do you want to emulate that? Facebook provides a full API you can use in mobile apps, web apps, desktop apps, etc to connect/login/post/etc for users' accounts. Why not just use that API? It's well documented: http://developers.facebook.com/
dont really know if the title is apt but believe you will understand after reading
i am presently working on a project and am stuck.
I have a mobile phone connected to a computer, i want to be able to access text messages immediately they come into the mobile phone from the computer.
The project i am doing is php based, please how can i go about it?
You'd have to reverse engineer the protocols used by the phone's manufacturer to interface between the phone and the manufacturer's desktop software. Basically a difficult task. Thankfully there's lots of cell enthusiasts who've done this already for many makes. Look at the BitPim project for some guidance - it's GPL'd so you can pick at the source and see how they accomplish it.
ActiveXperts SMS Messaging Server http://www.activexperts.com/mmserver/, it is a windows service and uses database, you can attach a compatible mobile phone or gsm module.
You just have to write message in its database it will automatically send it and you can read a received message as well from database.
Super easy to use, i recommend it because i have used it in one of my project.