Custom Tabs on Android #320
Unanswered
MatthiasKroiss
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Hey! This seems to be a bug, I'm publishing |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my Android app I'm trying to use the custom tabs feature of gotrue, but it doesn't work i always get the following exception
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
This is my code to initialize my supabase client:
``package com.aiui.paperui
import android.app.Application
import android.content.Context
import io.github.jan.supabase.SupabaseClient
import io.github.jan.supabase.createSupabaseClient
import io.github.jan.supabase.gotrue.ExternalAuthAction
import io.github.jan.supabase.gotrue.GoTrue
import io.github.jan.supabase.gotrue.gotrue
import io.github.jan.supabase.postgrest.Postgrest
import kotlinx.coroutines.runBlocking
class PaperUI : Application() {
}
``
And this the code to login through github
fun loginWithGithub() { viewModelScope.launch { _isLoading.value = true PaperUI.instance.supabaseClient.gotrue.loginWith(Github) } }
Please help me with this issue
Beta Was this translation helpful? Give feedback.
All reactions