Picture of Александр 5600
Registered 3 years 220 days
Александр 5600 Monday, 20 September 2021, 12:49 PM
Problem with launching the myApps application
Good day!

I am developing an application using the Innovaphone SDK that works with a database.

But I have a problem. When I launch the application in Visual Studio, the file is copied to the server and in innovaphone myApps I can launch the application.
In PBX -> Objects -> App, the status of the application is Connected.

As soon as I stop debugging in Visual Studio, in AP Manager, I start the application (Started), but in innovaphone myApps, the application does not start anymore (although the application icon is green) -
instead of the app, a white background. In the console, the loop is: closing; reconnect in 1000ms, closed. In PBX -> Objects -> App the status of the Connecting application.

The PBX is set to Test Mode.

What needs to be done to make the application available continuously by innovaphone myApps without the need to use Visual Studio?
How to put the application into production?

PBX Version 13r2 sr3 IP311
Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 121 days
Daniel Deterding (innovaphone) Monday, 20 September 2021, 01:17 PM
Re: Problem with launching the myApps application
Hi,

most likely this will be due to different credentials if you debug within visual studio compared to starting the instance inside the AP Manager.

If you take a look at your application-main.cpp file, you'll notice instanceArgs.appPassword = ...
This password is used during debugging of your instance.

If you manually create the PBX App object inside your gateway and the instance of the App inside your AP Manager, you must take care that this password is the same on both sides. Normally this is also the case if you start with a new App development, but maybe you used a PBX Manager Plugin which might change the password.

Can you set the password in your PBX App object and your App instance manually to the same value, which is used inside your application-main.cpp file?

Then I would expect, that your app works again.

Greetings,
Daniel
Picture of Александр 5600
Registered 3 years 220 days
Александр 5600 Monday, 20 September 2021, 01:46 PM
Re: Problem with launching the myApps application
Thank you very much! Everything works!
← You can define your color theme preference here