

can you show how the context is passed into that class?

if you are in MainActivity use getContext() instead of context

getContext() or getApplicationContext() ?

getContext if you are inside of an Activity


the correct way using viewmodels 😄

@Steven if you want to use my repo as Jetpack Compose example i don't have any problem with that 🙂

so is your problem resolved?

is not mine, i'ts @gyancodes issue

oh god im sorry 🫢

np 🙂

@Der Sarco Thanks for help, but I am still finding the solution,


@Steven Oh I looked into it and It helped to resolve my problem, thanks 🫡

[SOLVED] Facing error while passing context
Recommended threads
- Google signin with appwrite
I want to use Google sign in in android and create session from idToken using appwrite. But, i don't know if it's achievable or not. because i don't want to use...
- Realtime didn't work in react native exp...
``` useEffect(() => { const { client } = createClient(); const unsubscribe = client.subscribe(`databases.${process.env.EXPO_PUBLIC_APPWRITE_DATABASE}.t...
- Realtime didn't work in react native exp...
``` useEffect(() => { const { client } = createClient(); const unsubscribe = client.subscribe(`databases.${process.env.EXPO_PUBLIC_APPWRITE_DATABASE}.t...
