marlove / react-native-geocoding

MIT License
208 stars 54 forks source link

Working on simulator, not working on device #41

Closed Luisquii closed 3 years ago

Luisquii commented 3 years ago

Hi, any reason of why Geocoder is working on iOS simulator but not in device?

On simulator I'm able to get the address from coordinates object. In production I have the next error:

IMG_07B6EF813D81-1

But obviously I initialized the Geocoder:

useEffect(() => {
        initizalize()
        // removeData("@saved_locations")

    }, [])

    const initizalize = async () => {
        await Geocoder.init(config.Google_API, { language: "es" })
        Geolocation.setRNConfiguration(config2);
        handleUserLocation()
    }

My API key is right, as I said on simulator is workign perfectly but not on device.

*On device I have granted the location permissions.