-
Notifications
You must be signed in to change notification settings - Fork 34
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
[Bug]: Initialise supposeClient realtime #17
Comments
add this dependency
|
Yes you need a Ktor Client Engine, might include this in the readme |
Now getting error "java.lang.IllegalStateException: The schema must be specified" |
Also the supabase url should just be https://MY_KEY.supabase.co
|
This exception is thrown if you try to listen for db changes without actually specifying a schema. |
This actually bugs me. Even though I like the DSL style for settings, it doesn't force the consumer to provide required arguments and results in crash at runtime and it increases difficulty for new users. So maybe we should force required args as function arguments. createSupabaseClient(
supabaseUrl = "https://MY_KEY.supabase.co/realtime/v1"
supabaseKey = "SUPABASE_KEY"
) {
install(Realtime)
...
} Even more so now when this library is part of supabase community (congrats btw :) great job). So there is actually a danger of people using it :D |
Thanks, yea you are right, maybe I should change that! |
I'd close this issue to keep things clean. Feel free to open another issue when you have any issues! |
General Info
What happened? (include your code)
class SplashKotlinActivity : AppCompatActivity() {
}
Run app and it crases and trows errro: java.lang.ExceptionInInitializerError
Platform(s)
Android
Relevant log output
The text was updated successfully, but these errors were encountered: