I will try to be as brief and concise as possible. I have been trying to tackle this problem for last 5 days. Please help me get out of this.
-> I have a WordPress website, on which I have installed a plugin called Digit.
-> This plugin let the users to register themselves on my website using their phone number.
-> A verification code gets sent on the user's mobile and after entering the right pin, the user gets redirected to the dashboard successfully.
Let me just explain a visual scenario, briefly:
User enters its number.
After clicking on "Send OTP" button, a small browser window pops up, which takes the user to the 3rd party website and from where user enters and fill its verification code.
After verification, the tab gets closed automatically and user gets redirected to the dashboard successfully.
On Browsers, it is working fine. No problem at all
Now the actual problem starts here:
-> I have created a webview based android app.
-> The app is working, pretty fine. Everything is working like normal.
-> But when user tries to Signup and enter its number and click on "Send OTP", the small popup window opens and asks the user to fill the OTP received.
-> After entering the OTP, it gets Successfully Verified, but it does not get closed and redirect the user to the dashboard page, where it is supposed to be.
-> There is nothing written on the screen, just written the "Success message".
Below is the app image after verification
Below is my "MainActivity.java fiel link: https://drive.google.com/open?id=1YnNPtDkP3V58FY2fQU2MIuTCKSHm9_l8