When we use https://publish.twitter.com/# to get the script for Twitter timeline and use it in Webview at mobile app, the script simply showing "Tweets by … " as a link instead of showing timeline.

Can anyone suggest what is missing here?

Are you using UIWebView or WKWebView? Is Javascript enabled?

I am using UIWebView. Javascript will be enabled by default for UIWebview. When we use the script generated using https://support.twitter.com/articles/20170071 its working but not with the script generated using https://publish.twitter.com/#

Have you tried manually specifying https: on the front of the reference to widgets.js in the pasted code? Maybe the webview needs that for it to work.

Yes, if we add https: for widgets.js, its working. Why don’t we get the script generated with https: rather than we hardcode again manually to the script since most of the client applications required SSL based sites which were secured?