Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access Unsupported Block Editor (UBE) from Atomic site on iOS #3461

Closed
cameronvoell opened this issue May 6, 2021 · 1 comment · Fixed by wordpress-mobile/WordPress-iOS#16468

Comments

@cameronvoell
Copy link
Contributor

Describe the bug

I have the same test atomic site opened up on WordPress-iOS and WordPress-Android with a post that contains unsupported blocks.

The UBE opens up for unsupported blocks for the atomic site in WPAndroid, but it does not open on WordPress-iOS. Instead, I see a Bottomsheet that prompts me to open Jetpack security settings. Tapping this option closes the bottom sheet and nothing happens.

To Reproduce

Pre-requisite:

  1. We need a dotcom account with at least one atomic (business) site
  2. Create a post for that atomic site from Gutenberg Web that has at least one block not supported on mobile (classic / markdown/ etc.)

Steps to reproduce the behavior:

  1. Login to the dotcom account on WordPress-iOS that has the atomic site with the post with unsupported block from web
  2. Open up the post with the unsupported block
  3. Click on the unsupported block and note the bottomsheet that prompts to update settings
  4. Note that clicking the bottomsheet does nothing
  5. Also note that navigating to jetpack settings and enabling wordpress.com login also does not affect our abilty to edit the unsupported block

Expected behavior

We should be able to edit unsupported blocks on atomic sites from WordPress-iOS, not screen shot below comparing WordPress-Android to WordPress-iOS

Screenshots

WPAndroid Atomic WPiOS Atomic
Screenshot_20210505-183332_WordPress IMG-1592
Screenshot_20210505-183445_WordPress IMG-1593
Screenshot_20210505-183459_WordPress IMG-1594

To be clear, no matter what I set for Jetpack settings on WPiOS, I cannot seem to get access the UBE for the atomic site

Smartphone (please complete the following information):

  • Device: iPhone 11
  • OS: iOS 14.4.2
  • Version WPiOS 17.3 Beta

Additional context
Similar issue: #3425

@guarani
Copy link
Contributor

guarani commented May 11, 2021

After a bit of debugging, what I found was that the app was not fetching Gutenberg settings (/sites/1234567/gutenberg) when the user switched sites.

Explanation: In my tests, this bug would "resolve itself" after I went back to the My Sites screen. It's on that screen in viewDidLoad that the app fetches blog/site metadata which includes its Gutenberg settings (i.e the value of the site's editor_web, which can be classic or gutenberg). What I saw is that when the user first logs in, although this data is fetched for the default site, it's not updated when the user changes site in the site picker (e.g. switches to an Atomic site).
This is likely a bug introduced when the site picker was made a modal in wordpress-mobile/WordPress-iOS#16137.

I've made a PR to fix this here, wordpress-mobile/WordPress-iOS#16468, but have run into an error with the UBE web view where it appears that the cookie, wordpress_logged_in, is not returned by the server. I'm still looking into this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants