How to host material icons offline?

Method 2. Self hosting Developer Guide Download the latest release from github (assets: zip file), unzip, and copy the font folder, containing the material design icons files, into your local project — https://github.com/google/material-design-icons/releases You only need to use the font folder from the archive: it contains the icons fonts in the different formats (for multiple … Read more

Why am I seeing net::ERR_CLEARTEXT_NOT_PERMITTED errors after upgrading to Cordova Android 8?

The default API level in the Cordova Android platform has been upgraded. On an Android 9 device, clear text communication is now disabled by default. To allow clear text communication again, set the android:usesCleartextTraffic on your application tag to true: <platform name=”android”> <edit-config file=”app/src/main/AndroidManifest.xml” mode=”merge” target=”/manifest/application”> <application android:usesCleartextTraffic=”true” /> </edit-config> </platform> As noted in the … Read more

How to create a signed APK file using Cordova command line interface?

Step 1: D:\projects\Phonegap\Example> cordova plugin rm org.apache.cordova.console –save add the –save so that it removes the plugin from the config.xml file. Step 2: To generate a release build for Android, we first need to make a small change to the AndroidManifest.xml file found in platforms/android. Edit the file and change the line: <application android:debuggable=”true” android:hardwareAccelerated=”true” … Read more

Refused to load the script because it violates the following Content Security Policy directive

The self answer given by MagngooSasa did the trick, but for anyone else trying to understand the answer, here are a few bit more details: When developing Cordova apps with Visual Studio, I tried to import a remote JavaScript file [located here http://Guess.What.com/MyScript.js], but I have the error mentioned in the title. Here is the … Read more

External resource not being loaded by AngularJs

Another simple solution is to create a filter: app.filter(‘trusted’, [‘$sce’, function ($sce) { return function(url) { return $sce.trustAsResourceUrl(url); }; }]); Then specify the filter in ng-src: <video controls poster=”img/poster.png”> <source ng-src=”https://stackoverflow.com/questions/21292114/{{object.src” trusted}}” type=”video/mp4″/> </video>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)