Add conditions if phonegap