Jetpack: Can't install Jetpack when self-hosted password is changed
Expected behavior
I expect that the manual installation flow implemented in https://github.com/wordpress-mobile/WordPress-Android/pull/8426 will allow me to manually install Jetpack if the remote install fails because of invalid credentials.
Actual behavior
If I change my self-hosted account password after adding the site to the app, the Jetpack install fails and I end up on a blank screen where I can't proceed.
Steps to reproduce the behavior
- Set up a self-hosted site without Jetpack.
- Add the self-hosted site to the app.
- Change the account password on the self-hosted site (in the web dashboard).
- In the app, go to Stats.
- Select "Install Jetpack."
- Select "Continue."
Result: I see the "Installing Jetpack" screen, and then a webview loads with the beginning of the web flow for Jetpack install, but it quickly ends up on a blank screen:

Tested on Moto E5 Play, Android 8.1.0, WPAndroid alpha-133
cc @planarvoid
I also ran into this same behavior when the site returned a FORBIDDEN error because my user was an editor (not an administrator) on the site.
I am not able to reproduce this with WPAndroid alpha-133. I see a proper failure notice on the core WordPress login view (as a part of the Jetpack installation flow)

This is with the master admin (first admin) on the self-hosted WordPress (WordPress.org) site.
Rest of the flow
On going through the rest of the flow, the mobile view of the site shows up instead. The rest of the flow is as shown below.

Moving even forward
When I came back to the site on the app, and clicked on Stats button again, the Jetpack installation flow is shown again, and this time, it appears the webview remembers the new password that I had entered manually and the Jetpack installation goes through again (which I doubt actually happens, because Jetpack is already installed as shown on the images earlier - manual process) and finally, the the view comes back to Stats section of the app.
I tested again on a second device (Nexus 9, Android 7.1.1, WPAndroid alpha-133) and am having the same issue as originally reported.
If Jetpack is already installed and activated but not connected, I get the login screen and can continue the connection flow, but if Jetpack is not installed or not activated I consistently get the results I described above.
I deleted Jetpack on my self-hosted site and tested on 11.1-rc-1, Android 9, Security patch level October 5, 2018 on Essential Phone.
I followed the steps as outlined originally by @rachelmcr. I had the same results as @arunsathiya.
Tested on Alpha-133 on MIUI Global 10 that runs on Linux kernel 4.4
I got the same results as Arun.
But there was one error I didn't capture on the screenshot. When I was on the Jetpack authentication step (where site address is prefield, and you click on connect) the connection dropped an error:
Signing in error, please try again.
The process went just one step back and auto-restarted the connection after 1 second. This time it went through and Jetpack was connected properly.
I tested this with 2 scenarios also:
- Jetpack was just deactivated on self-hosted site
- Jetpack was completely uninstalled on self-hosted site
This issue has been marked as stale because:
- It has been inactive for the past year.
- It isn't in a project or a milestone.
- It hasn’t been labeled
[Pri] Blocker,[Pri] High, orgood first issue.
Please comment with an update if you believe this issue is still valid or if it can be closed. This issue will also be reviewed for validity and priority (cc @designsimply).