Skip to content

Support requesting permissions without locking the Swipe#678

Merged
paolorotolo merged 1 commit intomasterfrom
permissions-on-swipe
May 22, 2019
Merged

Support requesting permissions without locking the Swipe#678
paolorotolo merged 1 commit intomasterfrom
permissions-on-swipe

Conversation

@cortinico
Copy link
Member

Make sure we don't have to setSwipeLock(true) if the user is
requesting a permission. This is achieved by requesting the permission
during the onPageScrolled. If the permission is denied, AppIntro will
go to the previous slide.

Example:
May-20-2019 23-28-53

Fix #676
Ping @AnuthaDev

Make sure we don't have to `setSwipeLock(true)` if the user is
requesting a permission. This is achieved by requesting the permission
during the `onPageScrolled`. If the permission is denied, AppIntro will
go to the previous slide.

Fix #676
@cortinico cortinico self-assigned this May 20, 2019
@cortinico cortinico mentioned this pull request May 20, 2019
@AnuthaDev
Copy link
Contributor

@cortinico I will run it ASAP, just a quick suggestion(after looking at the GIF): I think the permissions request should fire when the user tries to leave the permission slide by swiping and not when the slide is opened.

@cortinico
Copy link
Member Author

cortinico commented May 21, 2019 via email

@AnuthaDev
Copy link
Contributor

@cortinico Fair Point

@AnuthaDev
Copy link
Contributor

@cortinico Another Workaround: We add a button that says"Grant Permissions" on the permission slide and disable swipe right. So, the user selects slide X, then swipes right to go to slide X+1 where swipe right is disabled and a button appears that asks to grant permission.

@AnuthaDev
Copy link
Contributor

@cortinico
Copy link
Member Author

cortinico commented May 21, 2019 via email

Copy link
Member

@paolorotolo paolorotolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'm ok with the new behaviour.
We probably need to update the README too since devs might need to change the order of their slides.

@paolorotolo paolorotolo merged commit f60af41 into master May 22, 2019
@AnuthaDev
Copy link
Contributor

AnuthaDev commented May 22, 2019

@cortinico @paolorotolo I don't think this behaviour should be there. I will submit a new PR that uses my approach in #676 in a much more efficient way.(soon)

@paolorotolo
Copy link
Member

Sure, feel free to :)

@cortinico cortinico deleted the permissions-on-swipe branch May 23, 2019 15:48
@cortinico cortinico added this to the 6.0.0 milestone Jan 23, 2020
@cortinico cortinico added the enhancement Issue/PR related to a new feature for the library label Jan 23, 2020
@gcantoni
Copy link

@cortinico how to implement this? :)

@cortinico
Copy link
Member Author

@cortinico how to implement this? :)

Hey @gcantoni This is currently on master. Will be released with the upcoming version of AppIntro (6.0.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Issue/PR related to a new feature for the library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants