ladjs / react-native-phone-verification

The best React Native example for phone verification (an alternative to Twitter Digits).
https://joinspontaneous.com
MIT License
370 stars 66 forks source link

network request faild #12

Open pandeysachchi opened 6 years ago

pandeysachchi commented 6 years ago

when i submit mobile number with country code then alert box open and show network request failed.

MinhNQ90 commented 6 years ago

same issue with you. I think coz he has back end but we don't so we get that error.

const api = new Frisbee({ baseURI: 'http://localhost:3000', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' } });

And this

const res = await api.post('/v1/verifications', { body: { ...this.refs.form.getValues(), ...this.state.country } });

niftylettuce commented 6 years ago

ill reply soon with a free solution + how it works

On Jan 16, 2018 10:59 PM, "MinhNQ90" notifications@github.com wrote:

same issue with you. I think coz he has back end but we don't so we get that error.

const api = new Frisbee({ baseURI: 'http://localhost:3000', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' } });

And that

const res = await api.post('/v1/verifications', { body: { ...this.refs.form.getValues(), ...this.state.country } });

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/joinspontaneous/react-native-phone-verification/issues/12#issuecomment-358190549, or mute the thread https://github.com/notifications/unsubscribe-auth/AAf7hfUEdpUvKzU0flLJS-Or6J_8xKxTks5tLXArgaJpZM4RVQJ8 .

pravinraut809 commented 6 years ago

Heyy , getting network request failed error ,, plss help '

NileshArnaiya commented 6 years ago

please help solve this issue ? how to create the backend ?

obaiomari commented 6 years ago

@niftylettuce Hello, Please any updates regarding the free solution you mentioned plus how it works? if not can you please provide some alternatives? thank you

pshgpt commented 6 years ago

Did anyone find any solution for this problem ?

ryanhssn commented 6 years ago

Worked for anybody?

niftylettuce commented 6 years ago

I'll provide an update + how to here soon

On Wed, Apr 11, 2018 at 1:56 AM, Bilal H notifications@github.com wrote:

Worked for anybody?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/joinspontaneous/react-native-phone-verification/issues/12#issuecomment-380336135, or mute the thread https://github.com/notifications/unsubscribe-auth/AAf7hba4ghSyg53CoFaJxG46-_CevM2mks5tnZr2gaJpZM4RVQJ8 .

ralfisalhon commented 6 years ago

Hey, has this been solved yet? thanks! @niftylettuce

obaiomari commented 6 years ago

@ralfisalhon just try this copy and past the full example after you setup firebase following this documentation, you can try the "basic starter kit" if you're new to firebase

saipranavrajesh commented 6 years ago

is there any update

ralfisalhon commented 6 years ago

@saipranavrajesh I solved my problem by making an XMLHttpRequest to Twilio using Authy API. I completely removed Frisbee from the given example and implemented my own functions.

You can learn how to use XMLHttpRequest here: https://www.w3schools.com/xml/xml_http.asp Twilio and Authy: https://www.twilio.com/verify

Good luck on your project.

linuissac commented 5 years ago

Any solution?

ddelcidg commented 5 years ago

Could someone solve it or have another tool? @niftylettuce ??. I heard that you can use react-native-firebase, its a alternative but it doesnt work with expo.

If some has other alternative, thanks in advance.

ddelcidg commented 5 years ago

Can you give us more details of your solution @ralfisalhon ?

iwmdipak commented 4 years ago

when i submit mobile number with country code then alert box open and show network request failed.