I have developed a app using worklight 6.2 targeting android and iOS, which should connect to the worklight server when the app starts. I did the following procedure.
- Developed an app in WL6.2
- Enabled the connectOnStartup parameter as true.
- Added android environment
- Run the app on worklight development server.
- Now opened the worklight console using
https://ip:10080/worklightconsole
, the app is working fine. - Since i need https connection, i opened the worklight console as,
https://ip:10043/worklightconsole
. The console successfully opened and working fine. - Now i am deployed the app on android emulator, and trying to connect the worklight server with http connection. The app can able to connect with worklight server.
- If the app is trying to connect to the worklight server with https, it is throwing the following error.
Error: The application failed connecting to the service.
The logcat is here