Git Product home page Git Product logo

Comments (8)

qsdigor avatar qsdigor commented on April 27, 2024 1

Launching permission request with LaunchedEffect did resolve the issue.

from accompanist.

PalankiBharat avatar PalankiBharat commented on April 27, 2024 1

Launching permission request with LaunchedEffect did resolve the issue.

Then maybe you could close the issue

from accompanist.

bentrengrove avatar bentrengrove commented on April 27, 2024

I haven't been able to reproduce this in the Accompanist sample app unfortunately which runs 8.2.2 so I think something else must be going on. Do you have any more info or a minimal sample project that reproduces it?

from accompanist.

Mwhite69 avatar Mwhite69 commented on April 27, 2024

If the original site

from accompanist.

qsdigor avatar qsdigor commented on April 27, 2024

It might be that I am launching permission requests in compose view with Timer but I did try without a timer and the same behaviour occurred.

Timer().schedule(timerTask {
    notificationPermissionState.launchPermissionRequest()
}, 1000)

from accompanist.

bentrengrove avatar bentrengrove commented on April 27, 2024

Have you had a look at the Accompanist sample app and seen if there is any difference to your implementation? Without more information I don't think I can provide a fix for this

from accompanist.

PalankiBharat avatar PalankiBharat commented on April 27, 2024

Description Updating gradle version from 8.2.1 to 8.2.2 will crash the permission request.

Here is the crash log.

 java.lang.IllegalStateException: ActivityResultLauncher cannot be null
at com.google.accompanist.permissions.MutablePermissionState.launchPermissionRequest(MutablePermissionState.kt:94)

Steps to reproduce Start any permission request. One sample for posting notification requests.

val notificationPermissionState = rememberPermissionState(Manifest.permission.POST_NOTIFICATIONS)
notificationPermissionState.launchPermissionRequest()

Expected behavior Launch the request and show the system dialog for the requested permission.

Try to ask permission in LauncheEffect block

from accompanist.

Mwhite69 avatar Mwhite69 commented on April 27, 2024

Granted permissions ben

from accompanist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.