Automatically allow call request from app
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).
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 +0200 )editWow, works perfectly, even with the app in background. Thanks a lot for the quick (QtQuick ;-)) answer. Cheers!
georgos ( 2015-04-17 00:44:21 +0200 )editNo worries mate!
attah ( 2015-04-19 14:03:31 +0200 )editI 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 +0200 )edit