To this.... <activity android:excludeFromRecents="true" android:exported="true"..."/> To this.... <activity android:excludeFromRecents="true" android:exported="true"..."/>

How to fix Background Android Notifications for Cordova apps

  |   By  |   51 secs |  0 Comments

I’ve been banging my head against the wall for background Android notifications for a longtime. They just were not re-opening the app, when tapped. I’m using cordova-plugin-firebasex. To get them to work, you need to edit AndroidManifest.xml and change this line To this…. You also need ‘click_action’:’MYCLICKACTIVITY’ in the android > notification json sent to […]

Continue reading...

Prepend content on WordPress sites

  |   By  |   1 min 55 secs |  0 Comments

With the advent of block and patterns in themes, the ability for plugins to prepend some content on posts and pages has got a little more complicated. The old method of filtering the content, doesn’t look good as a quirk is that filter hook is fired at the top of the page or post. Ouch. […]

Continue reading...

Detecting if an HTML colour is light or dark

  |   By  |   1 min 55 secs |  0 Comments

WordPress ships with the Farbtastic color picker, which is great if you want users to be able to select a colour. For a recent plugin I wanted users to be able to select a background colour of a div, but I also needed the text colour to work – that also needed to change automatically […]

Continue reading...

Getting the length of an MP3 the quick way

  |   By  |   2 mins 14 secs |  0 Comments

When you create content for a podcast for iTunes, Amazon Music and Spotify, the xml feed requires the length of the MP3 – that can be a problem if you are using an external mp3 file. It’s not easy to use the PHP get_id3 libraries to determine the length. If you can get them to […]

Continue reading...

Add a WordPress admin user using PHPMyAdmin

  |   By  |   57 secs |  0 Comments

Just once in a while, you can’t get into the WordPress dashboard and you need to create a new admin user quickly. You can do it with PHPMyAdmin. Login to PHPMyadmin Goto your WordPress Database table and click on SQL. Then copy and paste the MySQL statements below. Change YOUR USERNAME, PASSWORD, Your Username and […]

Continue reading...

Testing dark mode for cordova and websites

  |   By  |   20 secs |  0 Comments

In the Google Chrome Browser Open Developer tools with right click and “Inspect” Open the Command Control: <ctrl><shift><p> (Windows) or <cmd><shift><p> Type “Show rendering” Set theĀ Emulate CSS media feature prefers-color-schemeĀ to the value you want to debug While you are here, have some CSS…

Continue reading...

Javascript – detect what type of mobile

  |   By  |   51 secs |  0 Comments

For one of my apps, I have a landing page website – ourchurchapp.online, that detects if a mobile phone or tablet has accessed it and redirects to the correct app store. I use a javascript function to detect iOS, Android, Windows and Amazon – although Windows doesn’t go anywhere – so few people use it […]

Continue reading...