We have moved to a new Sailfish OS Forum. Please start new discussions there.
4

Automatically allow call request from app

asked 2015-04-16 22:21:23 +0300

georgos gravatar image

I would like to use the Jolla as a babyphone (baby monitor & alarm). Some Android babyphone apps are available and can be configured to call a specific number.

The main "problem" is that Sailfish requests permission to place a voice call, which in this particular use-case, defeats the purpose of a babyphone alarm ;-). In all other cases I'm very happy that Jolla behaves this way and explicitly requests permission to place a call.

It would be perfect if one could selectively allow specific app-phonenumber combinations to call without asking for explicit permission (or simpler, just allow specific numbers or just allow specific apps).

edit retag flag offensive close delete

Comments

2

I wouldn't trust them to execute in the background as they should (if that's even what they do) on the Jolla. With that said and while waiting for the proper solution, I think you could hack something up in /usr/share/voicecall-ui-jolla/main.qml (Instead of calling raise+show on the callPromptDialog you could call telephony.dialNumberOrService(number) ). You an also obviously also make an if-statement to check that it is the approved number. Note: I haven't tested it, proceed at your own risk, and don't forget to make backups

attah ( 2015-04-16 22:55:33 +0300 )edit

Wow, works perfectly, even with the app in background. Thanks a lot for the quick (QtQuick ;-)) answer. Cheers!

georgos ( 2015-04-17 00:44:21 +0300 )edit

No worries mate!

attah ( 2015-04-19 14:03:31 +0300 )edit

I have the same problem but I am just a user, not a programmer. Is it possible to share your main.qml? I tried a few changes, but they didn't work, maybe I don't know the right syntax? Thanks

HoSnoopy ( 2015-08-11 11:22:14 +0300 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2015-09-29 00:30:31 +0300

birefringence gravatar image

I had a first shot at a native app

https://openrepos.net/content/birefringence/baby-monitor

Please use for testing only!

edit flag offensive delete publish link more

Comments

Hi birefringence,

Thanks a lot for writing a native Sailfish OS baby monitor app!

I tried to install the app with Warehouse 2-3 times since you posted the notice but always got a "failed to install dependency qt5-multimedia..." (this is out of my head, not precise error).

Tried it again today (now with Sailfish OS 2.0.0.10 Saimaa) and installation worked fine. Will give some usage feedback soon...

Much appreciated, thanks again!

georgos ( 2015-11-20 23:19:19 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2015-04-16 22:21:23 +0300

Seen: 320 times

Last updated: Sep 29 '15