Hi all,
I followed this guide
for creating a test app with the Kapsel and Cordova plugins through the webide template (master-detail Kapsel offline application). I've done all the walkthrough and installed all the necessary, the build from the HAT setup went fine and i created a basic app from the offline Kapsel template given on webide. I tested the app online and it worked, then i deployed with the specific command to local Hat. The path i followed for the offline part was using the HcpmsAdmin cockpit for dealing with the push-pull requests and the odata used, since it was only a test app was the dynamic session version from http://services.odata.org.
This is how i configured the Hcpms for the app part
The app was configured only for android.
Then from command prompt i went to the deployed project folder created in the SapHybrid folder and from there i launched the cordova emulate command for emulating the app. From there i took the apk created in \hybrid\platforms\android\build\outputs\apk and i installed it on my android device. The app launches and i can use it offline too (i created a new entry named "entered offline") but the problem is that when i go back online and press the refresh button it gives me a "failed to flush data back to server" error message and than the screen locks to busy state and remais like this till i kill manually the app.
The strange thing is that the new entry i added is already in the odata, so it means that the flush was done successfully.
I don't understand what i'm doing wrong? Creating the test app was only the first step because i wanted to use the offline functions for a custom app.
Help is much appreciated, and any ideas are welcome.
Thanks