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

Migrate to Capacitor 6 #14

Closed
vovagorodok opened this issue Dec 16, 2024 · 5 comments
Closed

Migrate to Capacitor 6 #14

vovagorodok opened this issue Dec 16, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@vovagorodok
Copy link
Owner

Currently Google Play accepts minimal SDK ver 34. Need to migrate blichess to Capacitor 6

@vovagorodok vovagorodok added the enhancement New feature or request label Dec 16, 2024
@vovagorodok vovagorodok self-assigned this Dec 28, 2024
@vovagorodok
Copy link
Owner Author

vovagorodok commented Jan 1, 2025

Porting branch: bluetooth...vovagorodok:blichess:migrate-to-capacitor-6

Issue when connecting to lichess.org
File: https://localhost/ - Line 0 - Msg: Access to fetch at 'https://lichess.org/' from origin 'https://localhost' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

@vovagorodok
Copy link
Owner Author

Asking in lichobile: lichess-org#2542

@vovagorodok
Copy link
Owner Author

Created discussion: ionic-team/capacitor#7826

@vovagorodok
Copy link
Owner Author

Fixed by adding to capacitor.config.ts (according to https://capacitorjs.com/docs/guides/autofill-credentials#set-capacitor-server-hostname):

  server: {
    hostname: 'localhost',
    androidScheme: 'http'
  }

@vovagorodok
Copy link
Owner Author

Done by: 2f89e9d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant