Secure Storage
This plugin gets, sets and removes key,value pairs from a device's secure storage.
Requires Cordova plugin: cordova-plugin-secure-storage
. For more info, please see the
Cordova Secure Storage docs.
The browser platform is supported as a mock only. Key/values are stored unencrypted in localStorage.
Cordovaの問題で困っていますか?

本格的なプロジェクトを構築している場合、トラブルシューティングに時間を費やす余裕はありません。Ionicのエキスパートが、保守、サポート、統合に関する公式サポートを提供しています。
インストール
Ionic Native Enterprise はIonic Teamが完全にサポートしメンテナンスしているプラグインを利用できます。 詳しくみる か、 エンタープライズプラグインに興味があれば 連絡ください
サポートしているプラットフォーム
- Android
- Browser
- iOS
- Windows
利用方法
React
Angular
import { SecureStorage, SecureStorageObject } from '@ionic-native/secure-storage/ngx';
constructor(private secureStorage: SecureStorage) { }
...
this.secureStorage.create('my_store_name')
.then((storage: SecureStorageObject) => {
storage.get('key')
.then(
data => console.log(data),
error => console.log(error)
);
storage.set('key', 'value')
.then(
data => console.log(data),
error => console.log(error)
);
storage.remove('key')
.then(
data => console.log(data),
error => console.log(error)
);
});