Category: Uncategorized

  • Setting up Ionic on new MacOS Monterey install

    Install xcode Install Homebrew /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” Install node and npm brew install node Install Ionic CLI npm i -g @ionic/cli Install Cordova (if using, Capacitor probably needs installing too but I’m not using it yet) npm i -g cordova Fix error ionic cordova build tool ‘xcodebuild’ requires Xcode, but active developer directory […]

  • Build-tool 32.1.0 rc1 is missing DX at

    Making a note of this becasue it’s bound to break at some point. After a fresh MacOS Monterey install and Android Studio 2 install and JDK 1.8 install (from Oracle) you need set your paths below, you might get this error: Build-tool 32.1.0 rc1 is missing DX at Used below to create a symlink (changing […]

  • What schema settings should I use with WordPress SEO – Enfold 2020

    Enfold has the option to add ‘Automated Schema.org HTML Markup‘ but it’s output isn’t designed to help SEO. It adds lots of microdata but doesn’t add much in the way of clean useful markup. This article is for a basic blog. If your site includes products, reviews, recipes or other data types for which there […]

  • Updating Enfold pre version 4.x

    Enfold theme can get stuck updating since Envato changed their API. You can try this: Please replace enfold/framework/php/auto-updates/class-pixelentity-theme-update.php with https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_4_1/class-pixelentity-theme-update.php This should enable the update. If nthe update isn’t even showing try Update Theme and Plugins from Zip File plugin. Download latest enfold, install plugin, upload them and install. The plugin will overwrite the old […]

  • Setting up new Debian 9 Turnkey Lamp with php 7.2 notes

    Notes for setting up a new lamp php 7.2 dev environment: Download Turnkey Lamp ISO Setup new VM in VMWare. Use iso to create. Install php 7.2 #!/bin/bash # To add this repository please do: if [ “$(whoami)” != “root” ]; then SUDO=sudo fi ${SUDO} apt-get -y install apt-transport-https lsb-release ca-certificates ${SUDO} curl -ssL -o […]

  • Viewing local PDFs in Ionic on browser, iOS and Android 5 +

    This is a provider that allows viewing of local PDFs on iOS and Android. Tested on Android 5,6 and 7. Tested on Ionic 3.19.1. This will never work on Android if you use live reload as the above version of Ionic doesn’t see cordova. It does work without the live reload flag. So this, won’t […]

  • How to view local PDFs in Ionic on Android and iOS

    Update: I wrote a provider that uses Document Viewer on iOS and In App Browser on Android: This method has only been tested with local PDF files stored in your project src/assets/ folder. No idea if it would work with remote PDFs, probably not on Android. Also, I’m very much a beginner so I may […]

  • ionic tried calling but Cordova is not available

    Got the error “Cordova is not available. Make sure to include cordova.js or run in a device/simulator” which looks like a bug. Found the answer on stackoverflow which is to update a project file (so needs to be done for each project): From the above linked page: The livereload plugin fails to serve cordova.js file […]

  • ionic deviceready has not fired after 5 seconds

    Got the error “deviceready has not fired after 5 seconds” when trying to use: ionic cordiva run ios -l Found the answer on Github which is to add the ios and android platforms, remove them and then add them again: ionic cordova platform add ios ionic cordova platform add android ionic cordova platform rm ios […]

  • ionic please include gradle in your path or install android studio

    Got “please include gradle in your path or install android studio” when trying to build/run Android using the ionic CLI. Found the answer on stackoverflow surprise surprise. Which was: brew install gradle