Simple PhoneGap Logon App for SAP mobile applications
This post is to share a simple PhoneGap application that manages the logon before calling a Netweaver URL with basic authentication. This app can be used as a container to run any HTML5 application from Netweaver and it is also open-source, so it can be useful for other people working on the SAP mobility topic (direct link to the code).
About the problem this app tries to solve
The Logon App
The application is ultra simple. Starts with a username/password screen (screenshot left). In the menu there is a settings screen where the server connection details and the URL path to the starter application must be saved (screenshot middle). When the login button is pressed the app calls the Netweaver URL using the Basic Authentication credentials and displays the remotely loaded starter application (screenshot right). After the login all UI and logic is in the server side.
Source code and instructions
Code is available in this repository with some minimal build instructions. A binary apk is also available in the downloads section. Currently it is only for Android (doing for other PhoneGap platforms should be easy, at least an iOS version will be done sooner or later).