brabo-hi

    brabo-hi

    11 months ago
    Hi, i am using accompanist permissions
    @Composable
    fun MyComposable() {
        val cameraPermissionState = rememberPermissionState(Manifest.permission.READ_CONTACTS)
    }
    I am getting the following error `
    java.lang.IllegalStateException: Permissions should be called in the context of an Activity
    `
    Csaba Kozák

    Csaba Kozák

    11 months ago
    Where do you call
    MyComposable()
    ? Are you really outside of an
    Activity
    ?
    brabo-hi

    brabo-hi

    11 months ago
    MyComposable
    is not called directly from from the Activity