Skip to content
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

Implement experimental workaround for Android Server pairing #1256

Merged
merged 17 commits into from
Jan 11, 2024

Conversation

jthrilly
Copy link
Member

@jthrilly jthrilly commented Dec 1, 2023

The new android platform introduced in 6.5.0 made the app be served from the HTTPS context by default. This broke pairing, because requests to Server are sent via insecure HTTP (we use our own TLS certificate to secure the communication once pairing is complete) and chrome disallows "mixed content" requests.

I implemented a preference here that forces the app to load from HTTP, which "fixes" the issue, but it has some drawbacks:

  • Some browser features are disabled when loaded from an insecure context. We don't know what these are, exactly.
  • iOS uses its own preference for 'scheme', so pairing is presumably still broken there.

The new android platform introduced in 6.5.0 made the app be served from
the HTTPS context by default. This broke pairing, because requests to
Server are sent via insecure HTTP (we use our own TLS certificate to
secure the communication once pairing is complete) and chrome disallows
"mixed content" requests.

I implemented a preference here that forces the app to load from HTTP,
which "fixes" the issue, but it has some drawbacks:

- Some browser features are disabled when loaded from an insecure
  context. We don't know what these are, exactly.
- iOS uses its own preference for 'scheme', so pairing is presumably
  still broken there.
This is an attempt to fix duplicate headers in the csv export.

It replaces the node stream functionality with simple string writing,
and uses papa parse instead of constructing the csv manually.

It doesn't seem to work!
…va-csv-write

attempt to fix csv writing on cordova by replacing streaming
@jthrilly jthrilly merged commit a15d1a6 into master Jan 11, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant