Cordova app cannot see web server - angularjs

Ionic Framework version 1.4.0-alpha.5
Cordova version 3.5.0-0.2.4
Windows 7 64 bit
Nexus 5 running Android 5
I have an Ionic Framework app that accesses a web API. This Web API is hosted at 192.168.0.10 (my development machine). For whatever reason I am getting nothing but 404 errors when trying to access this server via $http.
If I access 192.168.0.10 from my PC, it works as expected.
If I access 192.168.0.10 from chrome on my mobile phone, it works as expected
If I access 192.168.0.10 from the Ionic/Cordova app on my phone I see 404 errors via the web view inspector utility of the ADB chrome plugin.
When I change the remote web server address to the live URL ( e.g. https://my.server.com/ ) it works as expected.
I have added 192.168.0.10 to my access rights in config.xml
This used to be fine in the past, but not it doesn't work... and I am stumped! Anyone have any ideas?
UPDATE I've tried accessing 192.168.0.10 from a brand new test app and it works as expected, I can only assume at this stage it's something to do with a plugin...

Related

VueJS PWA says Network Error in my small PWA. Even I can't login

In my PWA everything is working except POST HTTP calls. I have a login on my first screen. It says Network Error. But it works fine Desktop/Laptop web browser. Only found the problem on mobile app [Android]
Note
I used Vue CLI for creating project.
I also tried with React. Happened the same. I don't know what's wrong with me.
You most likely try to connect to localhost. When deploying to a different device localhost is the actual device you are deploying and most likely you are not running a web server there.
You need to find your local machine's ip and use that as base url for HTTP calls.

Connection to Website possible in Chrome App but not in standalone app

I am testing links from a server which is only reachable via a VPN.
The test runs perfectly in the chrome app, but when I run it in the standalone app, I get the message:
The requested URL can't be reached
The service might be temporarily down or it may have moved permanently to a new web address.
Connection closed without sending a data
Does anyone knows why this is happening and how I could possibly solve it?
I have the latest release of the chrome app and standalone app and I am using a Windows 10 64bit machine.

connect to local host with my android phone but dont the full angular site

I am using tomcat server and angularJS to build a site that uses an API to bring data from the server by using an HTTP requests. when running on local machine tomcat is on ,i can see the full functionality of the site but when i'm connecting to my localhost from my phone (through WiFi) the site i see is not really functioning ,as if the HTTP requests can't be sent. is there a way to make the site work fully when viewed from my phone ?
note: my site basically uses the API to send a GET request and update a table on screen with the data, and POST/DELETE requests to update,delete,create data and of course dynamically update the table.
i'm working with Windows 7 if it matters.
another note: i used this answer to be able to connect with my phone. maybe i should use another way ?
Thanks
Sivan
why not use https://ngrok.com/ to tunnel your localhost to an private url.
(this is just for mobile testing right?)

CORS issue browsing Mac localhost app that uses Auth0 from IE11 in Parallels

We've got an Angular app that uses Auth0 for SSO login. We primarily use Macs and develop and test locally using the localhost web server. Browsing the site locally using browsers on Mac works fine. We can authenticate and the subsequent redirect does the right thing. The problem is browsing with IE. We can connect to the localhost web server on OS X using the IP address. We had to edit the Windows hosts file to map the Mac's IP address to localhost due to our app using full URLs/URIs as primary keys, so that the keys match.
When I browse the site using IE11 on Parallels, login using Auth0, it looks to authenticate just fine, but afterwards, we get an error when it tries to redirect:
XMLHttpRequest for https://mindjet.auth0.com/tokeninfo? required Cross Origin Resource Sharing (CORS).
Auth0 does have a field for specifying allowed CORS origins, and I tried every conceivable URL that our app exposes, even just *. But nothing worked. In our Angular app, I've tried setting $httpProvider.defaults.useXDomain = true; That didn't work either. I'm new to the CORS concept, so any insights would be greatly appreciated. We just want to find a way to test with IE without having to deploy to a dev server.
Our main issue that we couldn't test with IE11 seems to have been resolved by updating our auth0-angular and auth0-widget libraries to the latest version. I still occasionally see warnings about CORS issues in the console, but we are able to login and get redirected to the correct part of our app.

Silverlight Bing Map control does not render when deployed

The SL app works just fine rendering all the pushpins only when executed thru VS2010. When I deploy the app to a local web server, the Map comes up but no data is rendered. Any ideas?
Is your silverlight application connecting to a localhost web service for the data? Have you used Fiddler to verify that your web service calls are going to the production server? This setting is in your ServiceReferences.ClientConfig file in your Silverlight project. You can also unzip your xap to verify the configuration.
Derek, yes. I have a DEV key for the map. Then I tried changing the Key type but that did not work.
Andy, yes I did use Fiddler but did not tell me anything :)
The SL app within the SLN connects to the WS as a project ref. When I deployed locally, I did deploy the SL and the WS. The WS works just fine locally (localhost). After I deployed the SL app, I had to change URL in the Service Ref file. I initially changed it to the localhost location and that is when I posted the question originally.
Then, I changed the URL to the Hosted version of the WS and it now works. So the fact that works is good; but still wondering why the SL app pointing to the working version of the WS (localhost) does not work.

Resources