2

I am at the moment researching about the new features of progressive web apps and they are pretty amazing and allow building web apps which are feeling very native. In particular, I'm considering at the moment to build a purely web based, installable calling app. Most features for something like that exist already:

Nevertheless, for building a serious calling app working on a mobile phone, it is necessary to be able to unlock/wakeup the screen of the phone in case of an incoming call. I unfortunately couldn't find anything out about a possibility for doing that; even not with features which are at the moment still considered as "experimental". Does anybody know if it is possible to do that at the moment, just using web technologies? And if not, if in the near future there are plans in browser technologies to allow something like that?

In my opinion, this is something which should be possible (at least in the future), since this would enable developers to build progressive web apps which are having more features and are even closer to native apps.

  • Well, it seems that this question of yours is not yet possible as of now, you can check this [documentation](https://developers.google.com/web/fundamentals/getting-started/codelabs/your-first-pwapp/) of progressive web apps the only possible way that you can do with it. If you want to know if this will be possible in the near future, just check the documentation link to know the updates on it. – KENdi Feb 20 '17 at 22:46

1 Answers1

0

Currently there is no API that fit your requirement, the best thing you can do is to send notification continuously when someone call you (which I have seen in many other apps).

The most recently feature a web page can do when the phone is sleeping is to play background music or control the volume (MediaSession). But that is only in experiment stage.

I'm not sure allowing a webpage to "wake up" the phone from sleeping state is a good idea. The web move forward but there are things that should be handled by native apps.

Tony Dinh
  • 6,668
  • 5
  • 39
  • 58