Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70432

Embedded widget is not shown in ios

$
0
0

@ourarash wrote:

I tried to embed a tradingview widget using this solution in my Ionic app. The process is to include a script in the index.html file, and then call the script in a component to show the widget:

<script type="text/javascript" src="https://s3.amazonaws.com/tradingview/tv.js"></script>

The widget shows correctly in Android and Web (both Safari and Chrome), but it doesn’t show in IOS. Any ideas why it doesn’t work in IOS?

I tried adding Content-Security-Policy in a meta tag, but it didn’t fix the problem:

<meta http-equiv="Content-Security-Policy" content="https://s3.amazonaws.com/tradingview/tv.js
frame-src * gap://ready; default-src 'self' gap://ready file://* * gap: cdvfile: https://ssl.gstatic.com data: 'unsafe-eval'; connect-src * blob: data:; style-src * 'unsafe-inline'; script-src * 'unsafe-eval' 'unsafe-inline'; img-src data: *">

I don’t see any errors in Xcodes’s debug window. Really appreciate any help on this.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>