My Blog

Menu

Native Storage

Posted: November 24, 2021. | By: Admin

Native Storage (https://ionicframework.com/docs/native/native-storage/)

1)Set storage value
    this.storage.set('searchedArea', address);
2)Get storage value
    this.storage.get('buyerId').then((val) => {if(val!=null){console.log(val);}else{}});
3)Get multiple values
      this.storage.forEach( (value, key, index) => {console.log(key:value);}),
4)Error
    a)DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned
        Sol:You need to store into an array, So convert object using JSON.stringify() and then store to local storage.

About

Aapthi Technologies,Hyderabad offers a complete range of web solutions including web designing, developing, web hosting, Internet marketing and many more. With our electrifying presence, we have swirled the scenario of web solutions. We consistently invigorate our skill-set and tech-expertise and work with a high-level of integrity. Our keen-eye on emerging trends of online business as well as technical spheres has empowered us to render the most innovative solutions. Persistent development is the key drive of Aapthi Technologies, be it in terms of infrastructure, skill-set or technology. Team Aapthi Technologies, is fully committed to render back hundred percent value for the money paid by client.

Social Links

Our Bunker

Plot No -596, Near Reliance Fresh,
Vivekananda nagar colony, Kukatpally,
Hyderabad - 500072, India.