# \[ERROR\] Native-storage plugin is not installed

**URL:** <https://forum.ionicframework.com/t/error-native-storage-plugin-is-not-installed/94278>\
**Category:** Ionic Native\
**Created:** [June 14, 2017, 10:41am UTC](https://forum.ionicframework.com/t/error-native-storage-plugin-is-not-installed/94278 "2017-06-14T10:41:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitk04](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/amitk04/32/110245_2.png) [@amitk04](https://forum.ionicframework.com/u/amitk04)\
**Post date:** [June 14, 2017, 10:41am UTC](https://forum.ionicframework.com/t/error-native-storage-plugin-is-not-installed/94278/1 "2017-06-14T10:41:53Z")

</div>

I am using native storage plugin to store the needed data. I have successfully installed that plugin in my ionic project but when i run my project in browser ,it’s throwing warnings that plugin is not installed.  
 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/6/a/6aa2c9233b69568190d0a79c3c6d07e21c59aab8.png)

As you can see here, i have successfully installed nativestorage plugin.

![image](https://global.discourse-cdn.com/ionicframework/original/3X/7/1/716ceb066f479a1ff21e81ffc128b5e63526b1e3.png)

I have wrapped up my native-storage code inside platform.ready() event.  
how to clear all those warnings?

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [June 14, 2017, 11:17am UTC](https://forum.ionicframework.com/t/error-native-storage-plugin-is-not-installed/94278/2 "2017-06-14T11:17:38Z")

</div>

Native plugins work in native environments. Not in the browser.

---

<div class="post-metadata">

**Author:** ![amitk04](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/amitk04/32/110245_2.png) [@amitk04](https://forum.ionicframework.com/u/amitk04)\
**Post date:** [June 14, 2017, 11:42am UTC](https://forum.ionicframework.com/t/error-native-storage-plugin-is-not-installed/94278/3 "2017-06-14T11:42:17Z")

</div>

It’s still not working as expected.

Here is the code where i am using nativestorage.

```auto
this.nativeStorage.getItem('userID')
      .then( (data)=> {
        console.log(data);
        this.userID = data;
         alert(data + "success");
      },(error)=> {
        console.log(error);
        alert(error + "fail"); // this alert is generated
      })

```

It’s generating error that “cordova\_not\_available fail”.  
I built .apk file and tested on real device.

Can you tell me what i am doing wrong?

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [June 14, 2017, 9:32pm UTC](https://forum.ionicframework.com/t/error-native-storage-plugin-is-not-installed/94278/4 "2017-06-14T21:32:59Z")

</div>

Perhaps you are not waiting for `Platform.ready()`, but I really think you should take a look at using ionic-storage instead. It works in browsers too, for one thing.
