- Android - Minimum SDK 22
Cordova
window.smartlock.save({
id,
name,
password
});
window.smartlock.request();
window.smartlock.delete({ id });
Ionic-native (Not supported)
NPM
Add to your package.json
devDependencies: {
...
"cordova-plugin-smart-lock": "github:okode/cordova-plugin-smart-lock#{{VERSION}}",
...
}
"cordova": {
"plugins": {
...
"cordova-plugin-smart-lock": {}
...
}
}
- SMARTLOCK__REQUEST__ACCOUNTS_NOT_FOUND =
-100
- SMARTLOCK__REQUEST__DIALOG_CANCELLED =
-101
- SMARTLOCK__SAVE =
-200
- SMARTLOCK__SAVE__BAD_REQUEST =
-201
- SMARTLOCK__DELETE =
-300
- SMARTLOCK__COMMON__UNKOWN =
-400
- SMARTLOCK__COMMON__CONCURRENT_NOT_ALLOWED =
-401
- SMARTLOCK__COMMON__GOOGLE_API_UNAVAILABLE =
-402
- SMARTLOCK__COMMON__RESOLUTION_PROMPT_FAIL =
-403
The project is MIT licensed: MIT.