wordpress-mobile / WordPress-iOS

WordPress for iOS - Official repository
http://ios.wordpress.org/
GNU General Public License v2.0
3.66k stars 1.11k forks source link

WhatsApp button produces "Error: usnupported URL" through WordPress App. #11543

Open lizkarkoski opened 5 years ago

lizkarkoski commented 5 years ago

History and previous trouble shooting is recorded in this forum thread: https://en.forums.wordpress.com/topic/whatsapp-share-button-does-not-work-in-wordpress-ios-app/#post-3301084

Expected behavior

When using the iOS WordPress App, I would expect the WhatsApp sharing button to work correctly and mirror the proper function noted with mobile browsers.

Actual behavior

Navigating to the site through the mobile app and then sing the WhatsApp button at the bottom of the post produces an Error: unsupported URL.

This is not the behavior noted from the mobile browsers. I am successful with reaching WhatsApp through the button on both Chrome and Safari.

Steps to reproduce the behavior

  1. Open mobile browser

  2. Go to ashwanisarda.wordpress.com

  3. Scroll to the bottom of the page

  4. Click on WhatsApp button

  5. Get redirected to the WhatsApp application

  6. Open WordPress App on iOS

  7. Click on Reader

  8. Find ashwanisarda.wordpress.com

  9. Launch the site from with in the app, button in upper right corner

  10. Scroll down on page

  11. Click on WhatsApp button

  12. See the error message

I tried this both as a follower and non-follower of the site, but that made no difference in the behavior.

Tested on [device], iOS [version], WPiOS [version]

WordPress App v 12.1.3 iOS 12.1.4

designsimply commented 5 years ago

Sharing to WhatsApp worked normally for me when I tested it today using WPiOS 12.2 on my iPhone 6S iOS 12.2. (1m51s)

I have some questions:

  1. Are you sharing a whole site or an individual post?
  2. For me, there's a step missing between steps 9 & 10, what exactly are you clicking on in order to launch the site from within the app and can you send a screenshot of that view (or let me know if it is an in-app browser or a webview or a completely separate browser view)?
  3. Can you spot any testing steps I missed in the screenshare I posted? (1m51s)

WordPress App v 12.1.3

Can you please try with the latest version of the WPiOS app (currently 12.2 and very soon to be 12.3)?

designsimply commented 5 years ago

@charliescheer can you help pick this one up? I am looking for a 2nd check that the testing steps to confirm it's possible to share from WPiOS to WhatsApp without an error. I re-tested it just now using WPiOS 12.5.1 on iPhone 6S iOS 12.3.1 and it's working for me without any problem. Can you spot if I'm missing anything?

charliescheer commented 5 years ago

@designsimply I was able to replicate this problem. It is happening for me when I am viewing the user's posts in a web view. Here is a screen capture. https://cld.wthms.co/6q32Js

I tried doing the same sharing from My Site > Blog Posts > View and it worked fine in that web view, but in the reader webviews I see this error. I tried the site mentioned above and one of my testing sites this way, with the same results.

WordPress 12.6 iOS 12.3.1

jerrysarcastic commented 3 years ago

This came up again in the wpcom forums here: https://wordpress.com/forums/topic/whatsapp-share-button-does-not-work/

And I am also able to consistently reproduce this error on my device: iPhone 12 Pro — iOS 14.4.2 — WordPress App v16.9

Steps to reproduce:

  1. On test site, have WhatsApp sharing button enabled.
  2. On WordPress iOS app, click on My Site > View Site to open the test site in web view
  3. Navigate to any blog post and click the WhatsApp sharing button in that post
  4. Share on WhatsApp screen appears, with message "Error: Unsupported URL" displayed. See screenshot

Image from iOS (26)

Note: The WhatsApp sharing button seems to work fine if you:

However, clicking the WhatsApp sharing button when viewing the test site within the app (Web view?) results in an error message. I tested this with the WhatsApp app installed on my phone, and also with the WhatsApp app deleted (so it is not present on the device) and it made no difference, I got the error message in both cases.

jerrysarcastic commented 3 years ago

Adding on here, I noticed that on the screen with the error message is a share icon. If I clear the error message (click OK) and click on the share icon, I have the option to open the underlying page in the browser. If I do that then I am redirected to the WhatsApp app on my phone.

If Instead I attempt to click the "Continue to Chat" button I am taken to a new error message: Redirection to URL with a scheme that is not HTTP(S)

See screenshot:

Markup on 2021-04-04 at 11:36:48