Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Faucogney Anthony
    @afaucogney
    right know, i do not care if a permission is already granted or not
    Can Elmas
    @canelmas
    yes you shouldn't care
    Faucogney Anthony
    @afaucogney
    I ask for 3 as shown in the code (1st line)
    Can Elmas
    @canelmas
    yeap
    Faucogney Anthony
    @afaucogney
    in the emulator, this is working !
    Can Elmas
    @canelmas
    I still don't get what's not working
    Faucogney Anthony
    @afaucogney
    on real device
    Can Elmas
    @canelmas
    do you need to ask all of those 3 permissions even one of them is already granted?
    Faucogney Anthony
    @afaucogney
    I ask for the 3, because maybe one of them may be ungranted in app setting
    Can Elmas
    @canelmas
    yes you should ask for those 3 permissions. AS you said user may ungrant that permission anytime.
    Faucogney Anthony
    @afaucogney
    I need the 3 to start the activity (camera)
    Can Elmas
    @canelmas
    But what I don't get is if user is already logged in and granted storage permissions, when this onEvent method is called the app will first ask remaining not-granted permissions
    in our case those permissions are location and camera; storage is already granted
    If user is ungranted that storage permission on system settings
    when this method is called
    it will ask 3 permissions : location, camera and storage
    Faucogney Anthony
    @afaucogney
    the app crash before asking one of the 3 !
    but the app succeed when it request a single one
    PS : onEvent method is linked to eventbus lib. MAy this be affected ?
    Can Elmas
    @canelmas
    is this the issue you've filed
    canelmas/let#7
    Faucogney Anthony
    @afaucogney
    that’s me, yes
    Can Elmas
    @canelmas
    I first thought about it but I've playing with eventbus
    but I couldn't simulate this problem
    what is the version of the event bus library you're using
    Faucogney Anthony
    @afaucogney
    compile 'de.greenrobot:eventbus:2.4.1'
    Can Elmas
    @canelmas
    I mean the issue described in the link was totally different thing
    related to annotation's retency policies

    so this one has no problem

    @AskPermission(Location)
    public void onEvent(SomeEvent e) {...}

    but this one crashes

    @AskPermission({location, storage, camera, etc})
    public void onEvent(SomeOtherEvent e) {...}
    Am i correct?
    Faucogney Anthony
    @afaucogney
    yes on real device only ! with the exception (getAnnotation(java.lang.class) on a null object reference
    About the link : the exception seems to be the same, that’s why I linked both cases.
    Can Elmas
    @canelmas
    and you were using let 0.1.10
    Faucogney Anthony
    @afaucogney
    yes, this is what I put on Gradle
    How can I log more info with the annotation ?
    I can send you the app if you want !
    Can Elmas
    @canelmas
    that would be nice
    but not sure If I'll be able to simulate the issue
    But I can definitely give it a look
    Faucogney Anthony
    @afaucogney
    you have a real device on M?
    Can Elmas
    @canelmas
    yes my nexus 5 is on M
    gotta go now
    I'll keep in touch
    Faucogney Anthony
    @afaucogney
    I just post you the link in private chat, ok ?
    Can Elmas
    @canelmas
    If you find something please don't hesitate to write
    sure
    Faucogney Anthony
    @afaucogney
    same way for you :)
    Faucogney Anthony
    @afaucogney
    I just let you know that I switch to another lib, because of the issue. RxPermissions. That is very easy to handle. A drawback compare to let, is that it’s not linked to method call ! keep in touch !
    Can Elmas
    @canelmas
    hey sorry couldn't have time yet to check this issue. rx is clean and simple. happy at least that you are not blocked!
    Varikuntla Subbarao
    @varikuntlarao_twitter
    My application showing this app wont work properly unless you allow Google Play Services request to access the following:Calendar,Camera,Contacts and all with CANCEL and OPEN SETTINGS buttons. But i want to restrict that to display in my application.Please help me.