What is the intended way of pushing my app (the user hasnt started the app at this point) in the foreground on an incoming call in the softphone app?
What is the intended way of pushing my app (the user hasnt started the app at this point) in the foreground on an incoming call in the softphone app?
"<htm filename of the app>": {
"<name of the API>": {
"info": object,
}
"presence": bool/string,
"hidden": bool
}
vs.
"apis": {
"manufacturer-appname": {
"com.innovaphone.phoneinfo": {phoneinfo
"info": {}
},
"presence": true,
"hidden": true
},
"manufacturer-appname-admin": {
"com.manufacturer.someapi": {
"info": {}
},
}
}
I think we we have to kill the "phoneinfo" after "com.innovaphone.phoneinfo: {"
We also tried it after "hidden..." with an "wake": ["phone"], but that also doesn´t work.
And then we saw the show(applink)
https://sdk.innovaphone.com/13r2/web1/lib1/lib1.htm, but like you discribed, we had first to trigger to open app.
When our the serverside JavaScript App is started, we can react on changes off the integrated com.innovaphone.phoneinfo, but no reaction to start automaticaly the app.
I hope you can close our knowledge gap with an JS Runtime example how to "autostart" an app when a phonecall is incomming.
{ "javascript": { "eval": [ "innovaphone-jsautostartexampleservice.js" ] }, "apis": { "innovaphone-jsautostartexample": { "com.innovaphone.phoneinfo": { "info": {} } } } }
{ "mt": "UpdateAppsInfo", "app": { "info": { "apis": { "com.innovaphone.phoneinfo": { "info": {} } } }, "name": "jsautostartexample", "title": "jsautostartexample", "url": "https://172.31.29.123/jsautostartexample/innovaphone-jsautostartexample" } }
var phoneinfoApi = start.provideApi("com.innovaphone.phoneinfo"); phoneinfoApi.onmessage.attach(function (sender, obj) { switch (obj.msg.mt) { case "CallAdded": console.warn(obj.msg.mt); console.log(obj.msg); break; case "CallUpdated": console.warn(obj.msg.mt); console.log(obj.msg); // show app if call is in connected state if (obj.msg.state === "Connected") start.show(); break; case "CallRemoved": console.warn(obj.msg.mt); console.log(obj.msg); // show home screen after the call is ended start.home(); break; } });