Hi Carmen,
sorry for our late reply. We gave ourselfs one more try to get the replicator running, unfortunately without success. Next i try to explain what we want to achive and what problems/erros we are faced to.
Our long term goal is to become part of the Innovaphone App-Development and to deploy apps through your plattform. At the moment we are faced with the decision whether to invest our time here. However, what we need for our test app (hopefully our first deployed app) is the same functionality as your "Users" App. We want to display a list of all available users and allow a selection. For this, we need the replicator (right?) to copy the pbx users data to a local database so that we can display it to our user. We are using version 13.1.
We open a new Project in Visual Studio 2019 with Innovaphone r13.1 app development.
- Our problems with the Replicator start at the very first lines of the tutorial:
-- When we include the "tasks_postgresql.h" in our NewApp1.h we get a redefenition error
-- When adding "replication.h" to NewApp1-main.cpp it does not build at all
(-- All ".h" files generated by the SDK have no ".h" files included)
I fixed these "errors" by myself and after a couple of time i had a running program, local databases were added, but without replication from the pbx (local database is empty). In the next step i took the replication.zip file and copied the logic to my solution. Same problem here, a running program but without replication. The main problem now is that the "ReplicatorStart" function is never called, the breakpoint set never reached, we have no idea why. This is the output that we get from Visual Studio:
- "06-24 10:14:52.499 AppService::AppService 13A352
06-24 10:14:52.499 AppService::AppStart repli@example.com
NOTICE: relation "users" already exists, skipping
NOTICE: relation "replicator_full" already exists, skipping"
- "Breakpoint 1, main (argc=1, argv=0x7ffdb4604128) at repli-main.cpp:39" - but there is no breakpoint set (line 39 is: "class IIoMux * iomux = IIoMux::Create();")
Inside your replication.zip file the replicator.mak file that is next to the ...-main.cpp contains these two includes:
- # include sdk/web0/lib/lib.mak
- # include sdk/web0/styles/styles.mak
Unfortunately there is no folder sdk/web0 only sdk/web1 in our SDK. On github we found the SDK 13.1 as download, same here, no web0 folder. Is this maybe the problem?
To summarize (r13.1):
- We need the "users" app funtionality (maybe your original code will help us)
- Header file includes (what is the right way? In my solution i can only include the "replication.h" file in my replicator.h file, other solutions will result in redefenition errors)
- The "ReplicatorStart" function is never called (do we miss to give our app any right? Task 5 from the replicator tutorial for example seems to be out of date because the config is set automatically from our opinion)
- Does the replicator need the "sdk/web0 folder that is no longer part of the SDK/Framework?
We hope that this here can help you, to help us to get the replicator running and to become part of the Innovaphone App-Development Community. I promise to answer promptly if there are any questions.
With best regards
Mladen Topic