IOS Emulator unable to access services - ionic-framework

I am trying to make a application with a private api. it perfectly work on ionic serve and android build apk. but in ios simulator and ios build in iPhone, it did not access the api service. how can i solve this issue?

I have removed cordova-plugin-ionic-webview and everything works well.

Related

net:: ERR_SPDY_PROTOCOL_ERROR - Flutter webview app on android 6.0 Marshmallow

I created a flutter webview application and successfully tested on many emulator android api versions & a physical device running on Android 11. Lastly when I'm testing on my older android 6.0 device , I got an error message as mentioned below.
The webpage https://testsite.com could not be loaded because
net:: ERR_SPDY_PROTOCOL_ERROR
If this error occurred to anybody / if anyone have solution for this, please help.
I found an article on internet said that this "ERR_SPDY_PROTOCOL_ERROR" can occur due to outdated web browser. So I tried to update the chrome browser on my phone. But it didn't solve my problem.
Finally I made it worked by updating the Android System WebView on google playstore. I think the error earlier happened is because of the very old Android System WebView.

Baqend is not working with emulator or real device using ionic

I'm developing an app using Baqend and ionic. When I run ionic serve the app runs fine in the browser and it is able to call Baqend. However, when I run ionic cordova emulate ios suddenly Baqend is not working in the Xcode emulator and it does not produce any errors in the console even with adding the --consolelog parameter.
I also tried:
Opening the project inside of Xcode and running it from there but same result.
Running the ionic/Baqend starter (https://github.com/baqend/ionic1-starter) and same result.
How can I debug this issue?
Update: I just tested it with Android using ionic cordova emulate android and it worked fine. So it seems that the issue only exist with ios.
The issue was solved by adding <allow-navigation href="https://*.app.baqend.com/*" /> in config.xml file.

ionic app run perfectly on browser but not working on devApp and android apk

This question is related to ionic 3 and I want to know how to run an ionic app using a real device.
I have developed an hybrid application and I was not able to connect my app with server. It works fine in my laptop browser. But it does not work in devApp and android apk.
I have tried many solutions but was not able to get the perfect solution. I have made a proxy server to access the api by ionic devApp but it doesn't even show a single error.
I think this problem is related about CORS.
Use the additional parameter of --devapp when running your ionic serve.
ionic serve --devapp
Should work now.
For me allowing port 8100 in my firewall was needed. Then everythig works.
CORS is not a problem when you build your app on a real device.
To run your app on android device :
ionic cordova platform add android
ionic cordova build android
ionic cordova run android (Connect your device before executing this)
Try Reinstalling cordova-plugin-whitelist plugin.
I'd the same problem. But I just uninstalled and installed again the ionic DevApp and it solved it.
Try using the command ionic serve -c this for view the app into Ionic devApp
I am not sure if this helps now - In your DevAPp you have settings where you can manually enter IP address and port. This will be the private IP (192.x.x.x) and 8100 that is displayed when you start the ionic serve --devapp from the terminal.

Debug an Ionic app published on google play

I am new to ionic app development. I have managed to make an ionic app and test it using android emulator. It works fine.
My app connects to a backend which is deployed on a DNS server and the data is exchanged.
This worked fine using ionic serve or even using the command ionic cordova run android --device.
However, the data is not getting updated on backend when I am trying to use the app after installing it from google play.
Can someone please help me how to debug the app.
I have installed the app on my android device and now trying to hit my backend server to update the data.
Thank you in advance.

g-places-autocomplete not working on android build

I am creating app on ionic and used g-places-autocomplete for google place auto complete.
It works well on browser, but not working on app after I built it on android app via ionic build android command.
After debug with android test app, i got error that i have not add Referrer URL as per android strucuture which is "file_url//android_asset/XXXXX".
After i added above type of URL, it start working.