![](/img/trans.png)
[英]how to remove camera permission from user authorisations list in ionic 5 app?
[英]How to remove User data from my app through Ionic?
我有一個使用 IonicStorage 和IndexDb的 Ionic 4 應用程序。 用戶將拍攝一些將保存在存儲中的照片。 該過程完成后,如果用戶查看應用設置,將會看到如下內容:
問題:當用戶嘗試再次登錄時,必須刪除、清除用戶數據。 我試圖通過從存儲中調用 clear 方法來刪除數據。
/**
* Clear the entire key value store. WARNING: HOT!
* @returns {Promise} Returns a promise that resolves when the store is cleared
*/
public ClearStorage(): Promise<any> {
return this.ionicStorage.clear();
}
我還在 config.xml 中添加了這些標志......但沒有成功。 我無法抹去
...
<application android:allowBackup="false" />
<application android:fullBackupContent="false" />
...
你能給我一些建議嗎。 泰
為每個存儲鍵嘗試this.ionicStorage.remove('yourStorageKey')
以刪除 IndexedDB 或 sqlLite 中的所有數據。
是的,這僅適用於應用程序存儲(通過 Chrome 檢查器看到)。 不清除用戶數據。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.