No provider for Geolocation error

I followed the How to Use Google Maps & Geolocation article by Josh Morony to implement geo location in my app every time I open the page with the map in the browser I get a runtime error that says:

“Uncaught (in promise): Error: No provider for Geolocation! Error: No provider for Geolocation! at injectionError”. I tried running it inside emulator but the map page is just blank.

Opening it in android emulator produces a blank page.

Any ideas on how do I fix this?

This is my providers in app.module.ts:

providers: [
{ provide: ErrorHandler, useClass: IonicErrorHandler }

I created a blank app and implemented Geolocation there, it seems to work without any errors.

Hey @fpajor, i did a some test here and can’t find out what is wront, would you mine to provide me more informations?