Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Invoke plugin methods after permission is granted #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

l3ender
Copy link

@l3ender l3ender commented Mar 19, 2020

This PR resolves the scenario where a plugin method is invoked for the first time and permission has not yet been granted. In this scenario, the permission prompt will come, but the API that was requested will never be invoked.

The fix is to invoke the API method after permission has been granted.

My Swift is not strong so please offer any suggestions or fixes (particularly I am not positive on self vs weakSelf usage with closures).

Note: it is easier to look at this PR if you ignore whitespace changes with ?w=1 parameter (https://github.com/codeborne/cordova-plugin-contacts/pull/5/files?w=1).

@asolntsev
Copy link
Member

@l3ender Thank you for the contribution. Currently we don't actively maintain this plugin.
Probably we will review pull requests when we get back from quarantine.

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

Successfully merging this pull request may close these issues.

2 participants