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

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