Can't get to show iframe of Bitcoin rate widget

  • 1
  • Problem
  • Updated 3 years ago
  • (Edited)
I tried to install simple widget by BitcoinAverage or Coindesk, and the two are not shown on device I used their iframe script. they work great on web and on phone gap desktop App

I've added this
<allow-navigation href="https://bitcoinaverage.com/*"; />
<access origin="https://bitcoinaverage.com"; subdomains="true" />
Photo of eyal-el

eyal-el

  • 6 Posts
  • 1 Reply Like

Posted 3 years ago

  • 1
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
<plugin name="cordova-plugin-whitelist"/>



Did u tried this plugin in your config.xml file?
Photo of eyal-el

eyal-el

  • 6 Posts
  • 1 Reply Like
Yes I used it , ver 1.2.2
didn't help yet
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
1. In which OS does this happen?

Can I have a look of your config. xml?
Photo of eyal-el

eyal-el

  • 6 Posts
  • 1 Reply Like
In Android (4.1.2) and other devices too in google console emulator..


config.xml
<preference name='phonegap-version' value='cli-6.5.0' />


<!-- Define the main entry-point to the application -->
<content src="index.html" />

<preference name="permissions" value="none"/>

<!-- Customize your app and platform with the preference element. -->
<preference name="DisallowOverscroll" value="true" />
<!-- android: MIN SDK version supported on the target device. MAX version is blank by default. -->
<preference name="android-minSdkVersion" value="14" />

<!--social sharing-->
<feature name="SocialSharing">
<param name="android-package" value="nl.xservices.plugins.SocialSharing" />
</feature>


<platform name="android">
<!-- Modify the android-manifest block and add the new property android:installLocation with value auto !-->
<preference name="android-manifest/@android:installLocation" value="auto" />
</platform>

<access origin="https://www.google-analytics.com"; />

<!-- Plugins -->
<icon src="icons/icon.png" />

<!-- Core plugins
<plugin name="cordova-plugin-battery-status" source="npm" spec="~1.1.1" />
<plugin name="cordova-plugin-camera" source="npm" spec="~2.1.1" />
<plugin name="cordova-plugin-media-capture" source="npm" spec="~1.2.0" />
<plugin name="cordova-plugin-device-motion" source="npm" spec="~1.2.0" />
<plugin name="cordova-plugin-device-orientation" source="npm" spec="~1.0.2" />
<plugin name="cordova-plugin-geolocation" source="npm" spec="~2.1.0" />
<plugin name="cordova-plugin-splashscreen" source="npm" spec="~3.2.1" />
<plugin name="cordova-plugin-media" source="npm" spec="~2.2.0" />
<plugin name="cordova-plugin-vibration" source="npm" spec="~2.1.0" />
<plugin name="cordova-plugin-file-transfer" source="npm" spec="~1.5.0" />-->
<plugin name="cordova-plugin-dialogs" spec="1.2.1" />
<plugin name="cordova-plugin-statusbar" spec="2.1.3" />
<plugin name="cordova-plugin-whitelist" spec="1.2.2" />
<!-- <plugin name="cordova-plugin-globalization" source="npm" spec="~1.0.3" /> -->
<plugin name="cordova-plugin-file" spec="4.1.1" />
<plugin name="cordova-plugin-inappbrowser" spec="1.3.0" />
<plugin name="cordova-plugin-network-information" spec="1.2.1" />
<plugin name="cordova-plugin-device" spec="1.1.4" />

<access origin="https://bitcoinaverage.com"; subdomains="true" />

<!--Firebase-->
<!--<plugin name="cordova-plugin-firebase" spec="0.1.19" />-->

<!--social plugin-->
<plugin name="cordova-plugin-x-socialsharing" spec="5.1.6" />


(Edited)
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
<allow-navigation href="*" />
Try to add above line into your config.xml file. 
Photo of eyal-el

eyal-el

  • 6 Posts
  • 1 Reply Like
I've added this to the config.xml
Still get an error on device
(Edited)
Photo of eyal-el

eyal-el

  • 6 Posts
  • 1 Reply Like
Just my update: It seems to work with several Android devices.
My guess it works for Android 5/6/7 +