Twitter Timeline Embed Not Showing up in iOS

I have embedded a Twitter timeline in one of the pages of my app. However, it does not show up when I build the project to Xcode and simulate it on an iOS device. It does work in Android.

In Index.html:

  <!-- Timeline Twitter -->
  <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>


  <!-- cordova.js required for cordova apps (remove if not needed) -->
  <script src="cordova.js"></script>

in Twitter.html:

a class="twitter-timeline" href="https://twitter.com/google"></a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

In Twitter.ts:

ngAfterViewInit() {
       !function(d,s,id){
           var js: any,
               fjs=d.getElementsByTagName(s)[0],
               p='https';
               js=d.createElement(s);
               js.id=id;
               js.src=p+"://platform.twitter.com/widgets.js";
               fjs.parentNode.insertBefore(js,fjs);
       }
       (document,"script","twitter-wjs");
   }

Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Safari dev tools: https://ionic.zone/debug/remote-debug-your-app#ios Look at the console and network tabs for errors.

Okay thanks. I will when I get a chance.