Child pages
  • Running servoy_sample_mobile
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Pre run steps:
a) Import servoy_sample_mobile and servoy_sample_mobile_service in developer.
b) import servoy_sample_crm and svyCore to easily see changes in sample crm, when synced from mobile

Steps to run:
1) make servoy_sample_mobile the active solution
2) export as mobile .war into <servoy7.0install>/application_server/server/webapps (via context menu on active solution)
3) activate servoy_sample_mobile_service
4) openhttp://localhost:8080/servoy_sample_mobile/index.html in chrome or firefox

You will see some company records displayed after logging in with "demo"/"demo", navigate to contacts> contact, do edit/save

Before doing a mobile "sync" to push data back open (in new tab/browser):http://localhost:8080/servoy-webclient/solutions/solution/servoy_sample_crm?nodebug=true
When now doing a "sync" on mobile any new contact or edit should show in sample crm, also opening multiple mobile clients in different browsers will show changes after sync.

Notes:
a) In somesituations is happens that the new war at point 2 is not seen by tomcat webserver, in that case delete the .war and direcory servoy_sample_mobile in <servoy7.0install>/application_server/server/webapps.
b) When testing with mobile device or from other host then localhost, the mobile solution should be exported/phonegapped with a different server url, which the device can reach or find. By default the export server url is 127.0.0.1, in many cases this needs to be the real IP or dns name to server where the solution has to retrieve data from.

  • No labels