Picture of mitop
Registered 3 years 153 days
mitop Wednesday, 21 December 2022, 05:48 PM
Autostart/app_connect a hidden C++ App for all users
Hi all,

i have a hidden C++ app (both ways like mentioned here https://forum.innovaphone.com/moodle2/mod/forum/discuss.php?d=27685), and because the app is hidden, it needs to start in background for every user to be ready to handle requests by the users on incoming calls. What i tried is the same way that it worked for JS Apps (https://forum.innovaphone.com/moodle2/mod/forum/discuss.php?d=27669) but without success (can not work, because the app has not yet been connected). Unfortunately I did not really find what I was looking for in the documentation.
Does anyone know where it is written or know how to do it?

Best regards
Mladen
Andreas Fink
Moderator Registered 12 years 279 days
Andreas Fink (innovaphone) Thursday, 22 December 2022, 11:33 AM
1 of 1 users consider this post helpful
Re: Autostart/app_connect a hidden C++ App for all users
Hello Mladen,

in case your app is an API provider for com.innovaphone.phoneinfo (Reference / APIs / Client APIs), the myApps should start your app automatically and the app will get client API requests on active calls.

Probably the API is not announced correctly? Can you compare RegisterApi messages in the client (JavaScript app service vs. C++ app service)?

Best Regards
Andreas Fink


Picture of mitop
Registered 3 years 153 days
mitop Thursday, 29 December 2022, 03:55 PM
Re: Autostart/app_connect a hidden C++ App for all users
Hello Andreas,

sorry for my late reply, i was off a few days. Your hint was good, the API registration was the problem. I tried to figure out how to register it correctly with success, but with some delay because of the documentaion.
What i did is to create a json api with "com.innovaphone.phoneinfo", register it, and start the api. Like mentioned here https://sdk.innovaphone.com/13r3/sdk/common/lib/appwebsocket.htm i added the apis object and an "com.innovaphone.phoneinfo" object to the msg inside the AppWebsocketAppInfo function, but i'm not sure if i need that.
Tomorrow i will do some more testing, and let you know if i encounter anything.


Thanks a lot and best regards
Mladen
← You can define your color theme preference here