ionic app url found localhost instead file folder - ionic-framework

After generating Android build and inspect within Google chrome.
The url in app should be file:///android_asset/www/index.html (Image2)
But always getting localhost.
Why its showing localhost:8080 …?? (image1)
The url in app should be file:///android_asset/www/index.html
But its running in localhost://8080

yes, Ionic always getting node(npm) as a localhost server

Related

getting 404 errors while hosting ionic 4 app on a webserver

I'm trying to host my ionic 4 app on a webserver.
I've copied the WWW folder to the server and i'm encountering errors and a white blank screen
I've tried using ionic cordova platform add browser then copy the www folder to my webserver and still same errors.
same thing by running index.html on my local machine.
Do I need a server that supports node to serve my app?
any help would be much appreciated.

How do I get flutter run -d chrome to use https?

I've been using flutter run -d chrome to start a web version of my app. The app uses FirebaseAuth and when I try to login using Google it tells me it's not secure. I think because the run command is setting up the server for http requests instead of https. If I try just changing the url to https I get an error.
I've looked all over and cannot find any options to tell flutter to use https. Anyone know how to do this?
You can build it and serve it via a webserver. You need a certificate that chrome tells you that the website is secured.

Ionic 3. Unable to load page via devApp

I'm a first time using Ionic 3 framework to create cross-mobile native application.
I had some problem when I test program with devApp application.
On browser it runs well, but on mobile shows error:
Unable to load page. The request time out.
Does somebody know how to solve this problem?
This could be triggered by so many reasons like bad code, network issues and so on
So I suggest you to:
Close your Devapp completly
Disconnect from Wifi
Close App in your browser
do a fresh new ionic serve -c
Start DevApp again
Connect to Wifi again
Start your App on Device
If this doesnt work you need to show us your code from app.component.ts and index.html and also your ionic info
Ionic devApp connects to your app using device internal ip on the same router. It might change everytime you connect.
Find the internal ip (ubuntu: ifconfig -a) and manually enter the ip and port using the option manually enter address in the sidebar.

LoopBack with Ionic

I am trying to run a LoopBack server with ionic client, but I am getting the "Error: Cannot GET /cordova.js" error.
My code can be cloned from github at: https://github.com/giladba/BetterTrader2.git
Problem description:
I created a LoopBack application, and at the client directory I created an Ionic tabs application.
After that, I ran these commands on the client directory:
ionic platform add android
ionic build android
In server/middleware.json I redirected the index.html folder to the Ionic www folder like so:
"files": {
"loopback#static": {
"params": "$!../client/www"
}
but when I run node . I get cordova.js not found when I open http://localhost:3000/ in the browser:
note that even though there is an exception the application seems to be working fine.
Any idea how I can fix the exception?
Cordova gets injected into the app when deployed on a mobile device. When you use the ionic serve command locally, for example, cordova.js always 404s. You don't need it unless you're on a mobile device in a cordova app, and it will be deployed automatically in that case.

Visual Studio 2015-Angular-Cordova-facebook login error

My Visual studio 2015 Cordova app, which uses facebook login is working fine in Ripple emulator. However, when I try to run the same app in Android emulator or in device, I get the error: “Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.".
In my facebook settings (https://developers.facebook.com) for website I have following entry:
Site URL: http://localhost:4400/
Mobile Site URL: http://localhost:4400/
In Advanced Tab, OAuth settings, both Client OAuth Login and Embedded browser OAuth Login are “yes”.
I tried with “Valid OAuth redirect URIs” keeping empty or http://localhost:4400/login
Hosts file does have an 127.0.0.1 localhost entry.
What should be the right URL in Site URL for an application in Basic and Advanced tab of http://developers.facebook.com? Wondering if these fields are ignored for a mobile app?
Like on a device, when running in the Android emulator, the Android OS believes "localhost" is the device itself rather than your PC. This is just like running Windows in a VM in this regard. Try fully qualifying your machine name or using an external IP instead.