Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1) How to check status beforehand, 2) support MediaLibrary, 3) permissions for AppStore #31

Closed
TomMajor opened this issue Oct 4, 2017 · 1 comment

Comments

@TomMajor
Copy link
Contributor

TomMajor commented Oct 4, 2017

I want to check a permission status before presenting the CustomPermissionsViewController, in case the permission is already ok.
How would I do that? In Example Project/ViewController.swift, I tried
let calendarCheck = PACalendarPermissionsCheck()
print("\(calendarCheck.status)")
but it always returns "checking".

Also I want to add MediaLibrary support. Which check class would you recommend to use as an template for that?

If I delete the unused check classes in my project, will this prevent the issue
"Too many permissions for AppStore", please see
nickoneill/PermissionScope#194
I used PermissionScope in the past, but looking for a new solution as PermissionScope is not maintained anymore.

Thank you very much.

@TomMajor
Copy link
Contributor Author

TomMajor commented Oct 4, 2017

ok, I think I can anser question 1) for myself, I guess the call to checkStatus() was missing in my example code:

let calendarCheck = PACalendarPermissionsCheck()
calendarCheck.checkStatus()
print("\(calendarCheck.status)")

Would still love to hear an answer to my other two questions, "MediaLibrary support template" and "Too many permissions for AppStore".

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants