Hello.

Please test the sharing contents using Web Intent URL of Twitter and I find any bugs.

  • chrome: v98.0.4758.87
  • Android OS : Android 11
  • Device : Samsung Galaxy Note10


If you make a share request with the above URL-Encoded URL, the Twitter share page will not be displayed. and then when the device is rotated, the Twitter share page is exposed normally.

It works fine on other mobile browsers right away. (Samsung browser, etc.)

[Android Java Code]

String pText = ""; // URL-Encoded TEXT using Javascript
String pUrl = ""; // URL-Encoded URL using Javascript
String pHashTags = ""; // URL-Encoded HASH TAG using Javascript

String tweetUrl = "https://twitter.com/intent/tweet?text=" + URLEncoder.encode(URLDecoder.decode(pText, "UTF-8"), "UTF-8")
     + "&url=" + URLEncoder.encode(URLDecoder.decode(pUrl, "UTF-8"), "UTF-8");
if (sharedHashTags != null) {
     tweetUrl = String.format("%s&hashtags=%s", tweetUrl, URLEncoder.encode(URLDecoder.decode(pHashTags, "UTF-8"), "UTF-8"));
}

Uri uri = Uri.parse(tweetUrl);
pActivity.startActivity(new Intent(Intent.ACTION_VIEW, uri));

Is it a twitter web page problem? Or is it a Chrome browser issue?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.