Ionic geolocation Only secure origins are allowed error

Is there a way to fix the Only secure origins are allowed error? I am testing my App on Android using ionic run android -l -c -s

it was working just fine a month ago! I tried it today and it just won’t work and it returns the above error.

  • I am using Ionic not Ionic2