Twitter widget timeline using publish.twitter.com script is not loading in webview

ios
objective-c
embeddedtimeline

#1

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?


#2

Are you using UIWebView or WKWebView? Is Javascript enabled?


#3

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/#


#4

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.


#5

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?