Questions tagged [ionic-storage]
The ionic-storage tag has no usage guidance.
ionic-storage
92
questions
0
votes
1
answer
208
views
Ionic Storage (Ionic 8, Angular 17) error: `ERROR NullInjectorError: NullInjectorError: No provider for Storage`
I am encountering the following error in my browser console: ERROR NullInjectorError: NullInjectorError: No provider for Storage!, upon attempting to configure Ionic Storage within Ionic 8 (Angular 17)...
0
votes
1
answer
198
views
Ionic storage-angular error: Can't resolve '@angular/common' in storage-angular/fesm
I'm trying to use ionic/storage-angular in my ionic application. I was following the documentation: https://github.com/ionic-team/ionic-storage.
I installed storage-angular (npm install @ionic/storage-...
0
votes
0
answers
24
views
ionic storage remove function removes data but app size does not change
I am using ionic storage (with SQlite) to store images in my app (not the best solution but the images are sensitive and I don't want to store it online). So I am able to store images and everything ...
0
votes
1
answer
49
views
ionic/angular service.subscribe fired regardless
I am writing the login section for my Ionic app and I'm having a problem with getTokenAsObservable.subscribe().
Basically, when the token is saved (clicked Login button) or deleted (clicked Logout ...
0
votes
2
answers
191
views
Ionic Storage v3 - Unit Tests | TypeError: _this.storage.forEach is not a function
I have a StorageService wrapper for @ionic/storage-angular where I have a function that looks roughly like this:
import { Injectable } from '@angular/core';
import { Storage } from '@ionic/storage-...
6
votes
1
answer
883
views
index.js depends on 'localforage'. CommonJS or AMD dependencies can cause optimization bailouts
I got this warning, but I dont understand why 'localforage' depends on CommonJS. I had googled for few days, but I can't find any solution that fit with my problems.
WARNING
C:\xxx\node_modules\@...
0
votes
1
answer
1k
views
What happened to capacitor js storage library?
Plenty of results all over the internet linking to
https://capacitorjs.com/docs/apis/storage
The page is gone and the package seems to be deprecated. I can't find any explanation for its disappearance....
1
vote
0
answers
614
views
@ionic/storage-angular is not working on android?
I have been stock for an hours because of this issue on @ionic/storage-angular it seems that its not working on android?
In my case it work fine on browser the data was stored in the IndexedDB. but ...
0
votes
3
answers
1k
views
Angular 12 + Ionic 5: Resolver does not wait for the Storage and HTTP calls to finish
SITUATION:
This question is regarding a SPA that I am building using Angular 12 and Ionic 5. When I am on the Home page, I can click the "Order History" link in the Side Menu and this routes ...
-1
votes
2
answers
306
views
Ionic Storage not outputing my stored JSON data correctly - Angular
I have something like the following:
Storage.remove({key: 'somedata'}).then(r => {
Storage.set({key: 'somedata', value: data}).then(g => {
Storage.get({key : 'somedata'}).then((...
1
vote
3
answers
3k
views
storage.get is not working in ionic storage (angular)
I'm trying to use ionic storage to save and load an authentication token I use to access the backend API in my APP, but I'm having trouble getting the value from storage.
I've installed ionic storage (...
1
vote
2
answers
4k
views
Ionic-storage with vue
I'm building an application using Ionic Framework v5 with Vue 3.0.0.
I use Vuex store to store global app informations, such as the user login token.
// file src\store.ts
export const store = ...
1
vote
3
answers
4k
views
Ionic Storage : TypeError: Cannot read property 'get' of undefined
I'm using Ionic Storage to store data on the long run. Right now i wanna retrieve data when i go to the Statistics page, so i called the Service i made and wrote the methods in the ngOnInit of the ...
3
votes
0
answers
592
views
Cannot find name 'List'? (Ionic - Angular) when using ViewChild
I am receiving the aforementioned error when trying to use an ion-list in the following context:
My Imports:
import { AddNamePage } from './../add-name/add-name.page';
import { MainService, User } ...
0
votes
0
answers
76
views
Ionic show button if Storage key = true
how to show button if Ionic Storage isLogin = true.
import { Storage } from '@ionic/storage';
constructor(
private storage: Storage,
) { }
login(phone: string, password: string) {
return this....