iOS simulator with auth0 ionic/react - ios

Need help with implementing Auth0 with Ionic/React. I've followed this documentation, but have not had any luck with an ios simulator.
http works fine when opening the app in the browser, but if I try and run an ios simulator, it complains that "auth0-spa-js must run on a secure origin.".
​
I've tried adding the simulators host and port numbers to the allowed web origins and callback urls in the Auth0 dashboard. I've tried adding a ssl cert from charles and I've tried...
ionic cap run ios -l --external --https
which starts a server running on https but the ios simulator returns "about:blank" in the developer tools.
Has anyone had any luck with getting Auth0 to work in a simulator?

Related

How to fix "This operation is not supported in the environment this application is running on. "location.protocol" ..." error running Xcode?

I am trying to run an Ionic Capacitor app with an iPhone simulator via Xcode.
It worked fine for the last couple of weeks. Also running the app with local host (ionic serve) still works fine.
However, since yesterday I am getting the following error when running it on the simulator or directly on an iPhone via Xcode:
[error] - ERROR {"code":"auth/operation-not-supported-in-this-environment","message":"This operation is not supported in the environment this application is running on. \"location.protocol\" must be http, https or chrome-extension and web storage must be enabled."}
For authentication I simply use Firebase Email and Password Auth. No Facebook or Google Auth.
I already tried to use other Firebase libraries as suggested in this post.
But that didn't help.
Anyone an idea how to fix that?
After all I found this solution which fixed the issue for now:
Downgrading #angular/fire from 6.0.3 to 6.0.2
npm install #angular/fire#6.0.2
Delete folder node_modules: rm -rf node_modules
npm i

Running app with capacitor IOS is loading at 'capacitor:app' instead localhost, getting cors error

I'm running an Ionic app with capacitor on an iphone 7 plus.
I'm using xcode and everything is ok
when I run the app, with the phone connected, everything works, but the app start running in
"capacitor://app" instead of localhost.
I have configure a port in capacitor.config.json, and it was working until today,
now, when I run the applicatoin, the xcode console said
loading at localhost:MICONFIGUREPORT
and worked perfectly.
Now, is running at 'capacitor://app' although is working right
I have problems with the CORS
even I allow the origin "capacitor://app" in my serve but still having the CORS origin problem.
I'm using Ionic 4 and
"#capacitor/android": "^1.0.0-beta.11",
"#capacitor/cli": "^1.0.0-beta.8",
"#capacitor/core": "^1.0.0-beta.8",
"#capacitor/ios": "^1.0.0-beta.8",

External API not working on ipad in my ionic 2 hybrid mobile app

I have developed an hybrid mobile application. In my app i used some external API which are on my server. I don't have mac so i created ios certificates on my ubuntu system using openssl.
i have used this ionic forum solution to build certificates
Then i build app on phonegap website. I got the ipa and apk build. I run apk on my android device and its working perfectly fine.
Then i uploaded my ipa to diawi.com which provided me the link to download in my ipad. I downloaded in my ipad and run it app start in my ipad but when i tried to login then its not working, then i tried to signup but i am unable to signup also. so i found that my app unable to hit the external API.
I don't have mac so i'm unable to debug it. How can i resolve this issue?
I googled some more and found that API requests i made are not secured which means i used http:// requests but ios for not allowing https request so i changed my request to https:// and its works.
ionic blog from where i got this information
anouncement which made about https requests

Phonegap on iOS9 localhost http(s)?

I'm testing how the app I'm building would work in iOS9 in the beta release of Xcode 7.
This lead me to wonder how everything will be served to the app, as it runs on a localhost connection over HTTP, and it seems that won't be possible in iOS9 without bypassing ATS.
Can/Should Cordova based apps be configured to run the localhost over https?

Can't get my meteor app to run on iphone

My app runs fine on an iOS simulator, but when I try to use meteor run ios-device in terminal, this is what I get:
raress-MacBook-Pro:To Dos rares$ meteor run ios-device
WARNING: You are testing your app on a remote device.For the mobile app to be
able to connect to the local server, make sure your device is on the
same network, and that the network configuration allows clients to
talk to each other (no client isolation).
[[[[[ ~/To Dos ]]]]]
=> Started proxy.
Could not open your project in Xcode.
Try running again with the --verbose option.
Instructions for running your app on an iOS device:
https://github.com/meteor/meteor/wiki/How-to-run-your-app-on-an-iOS-device
Try deploying your app to a server and then running your Meteor app with the --server flag. This allows the app running locally on iOS to access your server.
meteor deploy myapp
Then
meteor run ios-device --mobile-server http://<app-server>
Then I would suggest following the short guide here for connecting your iOS device using XCode... https://github.com/meteor/meteor/wiki/How-to-run-your-app-on-an-iOS-device
Differential also has an awesome resource on this. https://github.com/Differential/meteor-mobile-cookbook/blob/master/iOS/Building.md

Resources