Skip to content

Using PostgREST from Android #3417

Closed Answered by VinceT
VinceT asked this question in Q&A
Discussion options

You must be logged in to vote

WOW !!!
What I did :

  • revert PostgREST to http instead of https
  • add http://localhost to server-cors-allowed-origins in postgres.conf
  • restart PostgREST
  • change "androidScheme": "https" to "androidScheme": "http" in MyPath\MyApp\capacitor.config.json
  • add android:usesCleartextTraffic="true" to tag in MyPath\MyApp\android\app\src\main\AndroidManifest.xml
    And... everything works perfectly !
    Thank you so much !

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by wolfgangwalther
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants