Fix splash screen black/white screen issue

The solution will work on cordova version > 4.00

Install splash screen plugin

cordova plugin add cordova-plugin-splashscreen

Add these lines in config.xml

<preference name="AutoHideSplashScreen" value="false" /> 

<preference name="ShowSplashScreenSpinner" value="false" />

From config.xml remove following lines

<preference name="SplashScreenDelay" value="2000"/>
 <preference name="FadeSplashScreenDuration" value="2000"/>

 

In app.js add following lines

angular.module('starter.controllers', []) 

.run(function($ionicPlatform) { 

$ionicPlatform.ready(function() {

 setTimeout(function() { 

navigator.splashscreen.hide(); 

}, 100); 

}); 

})

Install nginx and php7 on ubuntu 16.04

First of all get all updates.

sudo apt-get update

Install nginx server

sudo apt-get install nginx

Now open http://server_domain_or_IP You should see the default page of nginx.

The default directory is /var/www/html/

Now lets install php for processing

sudo apt-get install php-fpm php-mysql

Uncomment the follwoing lines in /etc/nginx/sites-available/default

 location ~ \.php$ {

                include snippets/fastcgi-php.conf;

        #

        #       # With php7.0-cgi alone:

        #       fastcgi_pass 127.0.0.1:9000;

        #       # With php7.0-fpm:

                fastcgi_pass unix:/run/php/php7.0-fpm.sock;

        }

Replace

index index.html index.htm index.nginx-debian.html;

with

index index.php index.html index.htm index.nginx-debian.html;

Restart nginx

service nginx restart

Now your nginx server is ready to execute php script.

Note : If you want to execute sql query through php script then use mysli_query() instead of mysql_auery().