This is a port of emarashliev's original fix for CB-3562, cleaned up to avoid deprecated functions. Merge branch 'master' of https://github.com/emarashliev/cordova-plugin-splashscreen into CB3562 Signed-off-by: Shazron Abdullah <shazron@apache.org>