Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to wake a phone remotely?

I want to build an Android app that needs to be launched remotely over 3G (after getting a push notification over a socket).

I did some research and it seems it becomes very complicated as soon as the screen turns off and also because of Android killing idle sockets.

Is there an example project that demonstrates how to implement this reliably? I found the WakefulIntentService library, but it doesnt take in account that the socket needs to be kept alive.

An alternative would be to poll a certain URL periodically for a wakeup signal, but that would introduce a large delay before the device detects it needs to launch the app, depending on the polling interval.

like image 518
Maestro Avatar asked Feb 18 '14 22:02

Maestro


People also ask

How to Wake Your PC remotely?

This option is bit easy to wake your PC remotely. If you are unfamiliar with the term WoL then firstly know what it then proceeds further. WoL (Wake on LAN) is a protocol medium or follows a particular standard that wakes your PC using Network message. All you need is to set a programme on another device connected to the same Local Area Network.

How do I set up an alarm to wake someone up?

Once you have downloaded the App, click on the set a new alarm icon on the right. Add the person you plan to wake from your contact list. If the person you want to wake has Galarm, they will receive a notification on their phone when their alarm goes off.

How do you wake up someone on a silent phone?

Just type your friend’s phone number and select Hello, and their phone will automatically ring. Google voice may also come in handy where a silent phone is concerned, and it stands out because it is a trusted site. Just enter the contact of the person you are trying to wake and call their number.

What is the best alarm app to wake someone up?

Buddy alarm apps are perfect if you often need to wake a friend through their phone. Below are some of the most outstanding alarm apps in the market. This App not only comes with an alarm, but it also has a messaging feature to keep you connected with family and friends.


1 Answers

Have you looked into GCM or parse.com to send and receive the push?

I do not think those tend to be killed that easily.

That being said, if you have not already, you should have your socket running in a Service. Then it can run in the background independent of an activity being alive and it can be started when the device boots. Furthermore that would decrease the likelihood of Android shutting it down.

like image 182
cYrixmorten Avatar answered Sep 28 '22 02:09

cYrixmorten