Questions tagged [supabase-flutter]

15 questions
1
vote
0 answers

how to setup an integration test with authentication

I'm developing a flutter application which interacts with a supabase backend for both API and Auth. The only authentication is via email, specifically by means of magic link. The problem: I want to write some end-to-end test, and to do that I'm…
Bertuz
  • 2,390
  • 3
  • 25
  • 50
1
vote
1 answer

How to emit state from a stream?

Im learning flutter bloc. im trying to make a authentication event work. This is my bloc class SplashBloc extends Bloc { final supabaseClient = Supabase.instance.client; StreamSubscription? _subscription; …
1
vote
0 answers

How to mock supabase storage when performing integration - e2e tests

I'm writing a flutter app which uses Supabase as its backend. I'm using the bucket and messaging functionalities the following way: await Supabase.initialize( url: dotenv.get('SUPABASE_URL'), anonKey: dotenv.get('SUPABASE_ANON_KEY',…
Bertuz
  • 2,390
  • 3
  • 25
  • 50
0
votes
0 answers

Supabase RPC function not found

I have written a psql function in order to not have logic in my mobile app's code. CREATE OR REPLACE FUNCTION getRepeatedQuestionsByUserIdWithSubjectNameAndOptions(userId uuid) RETURNS TABLE ( question_id uuid, question_content text, …
0
votes
0 answers

Flutter/Supabase - how to add 'distinct' to data select?

From my Flutter app, when querying Supabase, is there a way to apply a 'distinct(field_name)' to the select clause?
user2868835
  • 1,250
  • 3
  • 19
  • 33
0
votes
1 answer

Supabase Flutter initialization is failing

this is exception, which i got in debug console, while i tried to debug my app.…
0
votes
1 answer

How to check if values already exists in the table which trigger get fired in Postgress

Considering table1 which have the follow fields: id1 uuid, id2 uuid, value text. I'm creating a mecanism which I would like to check if after a insert in table1, already exists the same record but with ids inverted. Example: CREATE OR REPLACE…
0
votes
1 answer

Flutter web supabse Oauth redirection issue

ElevatedButton( onPressed: () async { if(defaultTargetPlatform == TargetPlatform.android){ signInWithGoogle(); } …
Hitesh Patel
  • 183
  • 2
  • 12
0
votes
0 answers

Supabase policy for only one column

I have a table with articles and there is column "likes" and I need to allow to anyone (public) to INSERT into this column only "likes". How can I write SQL code for this policy that allow users to insert only into specific column? Is it possible?
0
votes
0 answers

Flutter Supabase Client Paginating Realtime Database Changes with Streams Paginations?

Hi I am currently making a chat application with Flutter and Supabase. Right now I am using the stream() method within flutter SDK to listen for Database changes as shown in the example here:…
jmsandiegoo
  • 413
  • 4
  • 14
0
votes
1 answer

getting the error: A problem occurred configuring project ':sign_in_with_apple'

i built a flutter application which i am planning to deploy on app center using the CI/CD of code magic, i have the workflow ready on codemagic for release but first i need to build the apk. so i added the key.properties file in which i add the path…
0
votes
1 answer

Problems in Callback URLs when using Supabase Flutter and JavaScript SDK

I am currently developing an application that consists of two codebases: one for the web using Angular and the other for the mobile version using Flutter. The challenge I am facing is related to setting the Site URL. When I set it to…
Nejat Njono
  • 254
  • 4
  • 9
0
votes
0 answers

pagination with flutter and supabase with bloc pattern

What is the best way to use pagination with flutter and Supabase and bloc pattern I tried to use the range method in Supabase but it didn't work I want the data not to be loaded all at once in the grid, but to be loaded while scrolling, What is the…
-1
votes
0 answers

Flutter/Supabase - delete master if all child records deleted

I have a Supabase database where a master 'Booking' table is linked to a child 'Events' tables, where a booking can have multiple events. My app allows the booking to be deleted, and I have set up a cascading association so that when the booking is…
user2868835
  • 1,250
  • 3
  • 19
  • 33
-1
votes
1 answer

Flutter/Supabase - problem with multiple OR in filters

I am using Supabase as my Flutter app backend, and I've hit a problem trying to build a complex SQL query using the Flutter Here is the query I am trying to create in SQL... select "instanceId","scheduled"->>'absolute',"taskOpen" from gd_task where…
user2868835
  • 1,250
  • 3
  • 19
  • 33