Support Article
Blank screen display after entering login details on mobile app
SA-91336
Summary
On installing the APK for Android device and entering the login details such as the username and password, a blank screen displays on clicking the Login button.
Error Messages
Not Applicable
Steps to Reproduce
- Install APK.
- Open the mobile application.
- Enter the login details.
- Click Login.
Root Cause
The blank screen is caused by the application ID. The client used the estes.Yard application ID which is in Camel case. In the Hybrid Client 7 (HC), when Pega OAuth2 authentication is used, only lower case application IDs are supported. When Camel case or Caps application ID is used, a blank screen displayed since the redirect back to the application does not work correctly. After the application ID is changed to lower case, a second issue occurred.
The login failed the first time. However, the login to the application is successful in the the second attempt. This occurred because the login HTML used by the mobile OAuth2 login screen had the 'http' URL instead of 'https'.
The NetScaler configuration at the client end forced all http requests to https URL; however, all the post data and query parameters are dropped. As a result, the user is directed to the desktop login screen.
Resolution
Perform the following local-change:
- Rebuild the application with the application ID in lower case (estes.yardprod instead of estes.Yard) such that the blank screen does not display during log in.
- Save the pyDisplayAuthScreenselector rule to the application's unauthenticated ruleset and make a change in the code to replace http with https. This is performed to the 'aliasurl' variable.
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.