question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem connecting to Android

See original GitHub issue

Hello Nelderson. Only the desktop version works and on localhost. If you try to use it on your mobile phone with wi-fi it is not working and it will be locked on the screen of the image that I sent. I await your help.

In the image below you have an error example using the Droid4X android emulator. The error only happens if you try to use with android.

https://i.imgur.com/DpMveXt.png

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nowsfekycommented, Oct 18, 2017

OK. I was able to tidy up and connect now. Thanks a lot for the help.

0reactions
shadowofficecommented, Oct 18, 2017
var allowCrossDomain = function(req, res, next) {
    res.header('Access-Control-Allow-Origin', '*');
    res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
    res.header('Access-Control-Allow-Headers', 'Content-Type, x-access-token');
    if (req.method === "OPTIONS") 
        res.send(200);
    else 
        next();
}

//----------------------------------
// SET ROUTES FOR EXPRESS API HERE:
//----------------------------------
// allow url
app.use(allowCrossDomain);
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Android Phone Not Connecting to Wi-Fi
Check Your Wi-Fi Connection on Another Android Device · Toggle Airplane Mode On and Off · Reboot Your Android Phone · Restart Your...
Read more >
Android Phone Not Connecting to Wi-Fi? 11 Ways to Fix
Android Phone Not Connecting to Wi-Fi? 11 Ways to Fix · Go to Settings > Network & internet and select Wi-Fi. · Select...
Read more >
Why Won't My Android Phone Connect to Wi-Fi? How to Fix It
If your Android phone won't connect to Wi-Fi, you should first make sure that your phone isn't on Airplane Mode, and that Wi-Fi...
Read more >
How to troubleshoot Android Wi-Fi connection problems
Verify your Android client is connected SSID and IP address. Return to your Android device's Settings > Wireless & Networks > Wi-Fi panel...
Read more >
What to do if your Android phone won't connect to Wi-Fi
It's possible that the router is to blame for your connection problems and not your smartphone. This happens often enough and is yet...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found