-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CapacitorJS testing WIP #308
base: develop
Are you sure you want to change the base?
Conversation
Meaning the app tries to talk to |
@jimmcgaw Can conditional logic be set so that, when running in an emulator, 10.0.2.2:8080 is reached out to instead of localhost:8080 ? |
@@ -74,6 +74,7 @@ func ProductionServer(srv *http.Server, httpsAddr, domain string, manager *autoc | |||
|
|||
func Login(m *miniware.Mapper, pgClient *PGClient) func(w http.ResponseWriter, req *http.Request) { | |||
return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { | |||
//w.Header().Set("Access-Control-Allow-Origin", "*") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the solution to the local emulator access issue. I don't think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kk
@@ -137,7 +137,6 @@ const ownUserStatusEpic = (action$, store) => | |||
.map(() => userStatusSent()) | |||
) | |||
.catch(error => { | |||
console.error(error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought I was cleaning up my own message here.
"allowNavigation": [ | ||
"192.168.1.247:8080/*", | ||
"localhost:8080/*", | ||
"leapchat.org/*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏 📿
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet! Should probably add www.leapchat.org/*
, I'd think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And 10.0.2.2 -- https://developer.android.com/studio/run/emulator-networking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"10.0.2.2:8080/*"
, I suppose
…re/miniware.go: Added comment; Capacitor: Added commented-out prod URLs ...for easing testing now and to add to conditional logic soon ™️
This feels very close to working, for development mode. Right now the issue is that the app, when running in an emulator, will not reach out to the localhost:8080. I've tried several workarounds from the docs, I haven't found the solution yet.