hello, im new in Supabase and kmp. Why i cant open...
# supabase-kt
n
hello, im new in Supabase and kmp. Why i cant open chat demo sample found in https://github.com/supabase-community/supabase-kt/tree/master/sample/chat-demo-mpp in android studio?
j
You need to open the whole supabase-kt project and then run the sample as described in the README
1
n
i managed to get authentication working, im getting error in logcat after sending chat message from android emulator : Error while trying to connect to realtime websocket. Trying again in 7s URL: wss://cnucnyusyjhfhcxtsdmr.supabase.co/realtime/v1/websocket?apikey=xyz java.lang.IllegalArgumentException: Engine doesn't support WebSocketCapability
Certain Ktor engines do not support websockets. Use another
n
Thanks @Jan, that helped. Im trying to send chat message while row level security for messages table is enabled with added policy:
alter policy "Allow insert for authenticated users"
on "public"."messages"
to authenticated
with check (
creator_id = auth.uid()
);
I changed creator_id type from text to uuid. My android device is returning rls error when this policy is on.What could be the issue?
solved, i needed policy to read messages as well.