Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Network error while implementing in my code #26

Closed
ashishBharadwaj opened this issue Mar 11, 2020 · 4 comments
Closed

Getting Network error while implementing in my code #26

ashishBharadwaj opened this issue Mar 11, 2020 · 4 comments

Comments

@ashishBharadwaj
Copy link

ashishBharadwaj commented Mar 11, 2020

@mikehardy : Please help me in fixing this
This is how I am passing data to apkVersionURL
image

@mikehardy
Copy link
Owner

I will not troubleshoot project-specific code, there are so many ways it can go wrong. I will certainly not do so with images of errors, programming is a text-based activity, post actual code

Tell me how it worked with the example, if you can reproduce an error with the example, I can fix it. I did my best to make the example complete and check that it runs out of the box

@mikehardy
Copy link
Owner

Ok, so the example uses

"https://raw.githubusercontent.com/mikehardy/react-native-update-apk/master/example/test-version.json",

which is https://raw.githubusercontent.com/mikehardy/react-native-update-apk/master/example/test-version.json

It works for me - if you can't get to that from your device, you have a major network issue. Check adb logcat, try well-known URLs directly etc.

Maybe there is a TLS issue similar to #11 / #13

What you're trying to do - perform network requests and directly update application code is pretty low-level stuff. You are going to have to be VERY resourceful and debug this yourself, as I can't reproduce it.

@IshaTyagi
Copy link

@mikehardy : Is there a way to directly pass the JSON object rather than the url?

@mikehardy
Copy link
Owner

@IshaTyagi No there is not, but I understand it might be nice to have "out-of-band" version information from somewhere else (some database or something, anything) so if that's something you need, and you make a backwards-compatible PR for it, I'd be happy to merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants