Fixed Phonegap issues by adding https to my API call