Start a GAS app from GWA
The runOnServer
front call allows you to start an application via the
Genero Application Server (GAS) from a Genero Web application (GWA).
A runOnServer
call is basically implemented as described for Genero Mobile for
iOS (GMI) and Genero Mobile for Androidâ„¢
(GMA) applications in mobile.runOnServer; however, there are two
notable differences or things to consider when implementing runOnServer
calls in a
Genero Web application:
- In GWA, unlike for GMI/GMA, both
RUN
andRUN ... WITHOUT WAITING
can be used in any combination.If we wanted to limit it to a
RUN
, theGBC
would need to know if it is in arunOnServer
state.The
runOnServer
application finishes when theGBC
loaded with the remote application detects application termination (meaning the session ended). - In the GWA, you can omit the full origin
(http://host:port) in the
GAS
URL argument, because the origin of the starting GWA application and the GAS application must be the same. (A Cross-Origin Resource Sharing (CORS) issue could arise, but this would require a modification in the GBC). Therefore, the call for the GAS URL argument can be reduced to a simple path like/ua/r/simple
. In GMI/GMA, this is not possible because the native application always runs on another origin.