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

Check is 1Password is available on device? #5

Open
johnkcox opened this issue Sep 12, 2016 · 4 comments
Open

Check is 1Password is available on device? #5

johnkcox opened this issue Sep 12, 2016 · 4 comments

Comments

@johnkcox
Copy link

Is there a clean way to check and see if 1Password is available on the device, either using your plugin or by other means?

@RaphyFischer
Copy link

Hey there,

I'm not an professional iOS developer so I might not be correct! With help of our plugin you can't check if one password is installed on the device. All we do is passing functionality of the iOS one password app extension through to JavaScript. So when this App extension has the ability to so this (but I think that's not the case) it would be possible to inplement. As far as I know it's mit possible to detect this kind of things from an app on ios in general.
Feel free to correct me or give me suggestions how to implement this:)

Kind Regards
Raphael

@pke
Copy link

pke commented Nov 22, 2016

This can be achieved using

BOOL installed = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"onepassword://"]];

Of course for every of the 1password registered URIs.

@pke
Copy link

pke commented Nov 22, 2016

@Raphy1302 Does the Cordova app need to whitelist the onepassword URIs as stated here
agilebits/onepassword-app-extension#231

@RaphyFischer
Copy link

@pke I don't know exactly but I would assume it to be needed to whitelist the URIs.

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