iOS Simulater cordova geolocation Testing


I was trying to get my current location in the simulator. When I called the function it asked me i would allow the app to use my current geolocation i accidentally hit don’t allow… so now every time i hit the button to call the getcurrentlocation function it just errors --> “Error: Can’t find variable: error”. Not sure if it’s because i didn’t allow or the cordova geolocation just doesn’t work on the simulator