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

How should the return value be interpreted? #45

Open
despinac opened this issue Mar 19, 2024 · 2 comments
Open

How should the return value be interpreted? #45

despinac opened this issue Mar 19, 2024 · 2 comments

Comments

@despinac
Copy link

The open() function returns a Promise, which includes a boolean status. Could you elaborate on the scenarios, where the promise is

  1. resolved with a status true,
  2. resolved with status false,
  3. rejected

Thank you in advance!

@stib
Copy link

stib commented Apr 16, 2024

Looking to understand the meaning of returned status value as well. Would be great to get an answer.

Upon successful call to Native settings to open the dialog, it seems to immediately resolve with "true". Should the true value be interpreted as "the user was presented with a dialog to make a selection"? From trying to understand the source code (not very familiar with the plugin code structure) it seems to return with true/success upon opening the settings dialog.

Will be great to confirm.

Thank you.

@RaphaelWoude
Copy link
Owner

I don't think the functionality for the return value was ever finished. The plan was to give true or false based on the result of the activity (resultCode). A new version is in the works that handles the result of the activity to give true or false.

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

3 participants