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

When viewing a post in a UIWebView comments can not be submitted. #10262

Closed
charliescheer opened this issue Oct 16, 2018 · 8 comments
Closed

Comments

@charliescheer
Copy link
Contributor

I noticed recently if you try to view a post from the My Sites > Blog post page, in the UIwebview you can not actually submit a comment. Everything acts the way it would in a web browser but when you click on the submit button nothing happens. I have tried this with anonymous and not anonymous comments, and the result was the same, when you click on the submit comment button nothing happens.

Here is a quick video of the problem:
http://cld.wthms.co/w6d8Zo+

To test this:

  1. Go to My Site > Blog Posts > and click on View for an already published post on the test site. (make sure to choose a site that does not allow for anonymous posting)
  2. When viewing the page, scroll down to the comments section, write up a comment
  3. Click on submit a comment and the button will react but nothing will happen.
@rachelmcr
Copy link
Member

I'd like design input on this, as the post view/preview is meant to show you how the post looks but wasn't meant for further user interactions (such as leaving comments). It's expected that comment replies/management will happen in native views in the app.

If you tap on a link in the post view/preview it opens in the device browser. Could we do something similar for handling when someone tries to submit a comment there?

@charliescheer
Copy link
Contributor Author

One thing that I found to be odd when I was testing this is if you go to the Reader and then view a post, it looks/feels similar to viewing the post from Blog posts (as in a web view appears) and from the reader you can comment, it was only from Blog Post > view that I was coming across this problem

@megsfulton
Copy link

megsfulton commented Apr 29, 2019

This appears to be related to Android issue wordpress-mobile/WordPress-Android#9649

Following up here too. Recommending that we change the behavior for viewing published posts to show the published post view and not the ?preview=true view.

@megsfulton megsfulton removed the Design Needed A design solution is needed. label Apr 29, 2019
@diegoreymendez
Copy link
Contributor

I'm adding this to the "Migrate to WKWebView" project in case we can manage to sort this out with the migration.

If that's not the case we may eventually move this out again, but I think it's worth reviewing this anyway.

@designsimply
Copy link
Contributor

I accidentally created a duplicate of this issue at #11926 and am copying that report here:

Steps to reproduce:

  1. Open the WPiOS app and log in to a WP.com account.
  2. Go to My Sites > Blog Posts > View on a site with comments allowed.
  3. Check the comment form to see if you are recognized as a logged in user (ref: Credentials not being passed to webviews, requiring users to enter contact info to comment on blogs #11414).
  4. Try to leave a comment and then verify whether or not it was saved.

Result: the comment form recognizes that I am logged in but posting a comment does not go through. (1m5s)

comment-test-via-webview-wpios-12 5 1

Tested with WPiOS 12.5.1 (currently latest app store version) on iPhone 6S iOS 12.3.1

@designsimply
Copy link
Contributor

From a support chat dated 11:18 am, April 3rd 2019:

I’m the Admin of my site and even though I’ve logged in, I’m now being asked to provide my name/email when I comment on a post. Also, when I click the “like” button the screen flashes but no ‘like’ shows up. This is a new development since the forced logout-update of the app this week. This appears to be some bug in the app.

(internal reference: 10763120-hc, 1935298-zen, 2107412-zen)

@diegoreymendez
Copy link
Contributor

I'm moving this out of the WKWebView migration project, as the project doesn't include the migration of the post preview VC.

@ScoutHarris
Copy link
Contributor

This appears to have been resolve at some point. Tested in 17.0. I am able to successfully comment from Blog Posts > View.

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

No branches or pull requests

6 participants