marlove / react-native-geocoding

MIT License
209 stars 56 forks source link

Getting error code 2 in android production build. #45

Open DevMobile2 opened 2 years ago

DevMobile2 commented 2 years ago

I am using react-native-geocoding for reverse geo coding.

It was working fine in local .

But when i switch to production in android i am getting the error below.

import Geocoder from 'react-native-geocoding';
 Geocoder.init('key');
Geocoder.from(‘data’)
        .then((response) => {

        })
        .catch(error => {

        });

Response {"code":2,"message":"Error while fetching. Check your network.","origin":{}}

is there any configuration i am missing.

rbjamaca commented 2 years ago

I'm experiencing the same issue in IOS production build