Ionic Geolocation plugin working on browser but not iOS and Android Emulators

It says in the error that the code is 2 for POSITION_UNAVAILABLE. But I don’t know why because I have Custom Location enabled on my iOS Simulator. Hope this helps anyone with potential suggestions on how I can address the issue I’ve come across.