# Problem with calling database/plugins before they are initialized

**URL:** <https://forum.ionicframework.com/t/problem-with-calling-database-plugins-before-they-are-initialized/120990>\
**Category:** ionic-v3\
**Created:** [February 9, 2018, 9:52am UTC](https://forum.ionicframework.com/t/problem-with-calling-database-plugins-before-they-are-initialized/120990 "2018-02-09T09:52:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vartex05](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@Vartex05](https://forum.ionicframework.com/u/Vartex05)\
**Post date:** [February 9, 2018, 9:52am UTC](https://forum.ionicframework.com/t/problem-with-calling-database-plugins-before-they-are-initialized/120990/1 "2018-02-09T09:52:34Z")

</div>

Hi, i want to ask, if there is any reliable solution, to check if plugins that iam calling are already initialized, so i do not run into error at startup of the app? For example i need to get data from sqlite, but i need plugin to be ready. Only platform.ready doesnt help. How do u solve this in your apps guys? Are there any best practises for this? I tried setting some timout after platform.ready, but that doesnt seems to be a good solution. Any ideas?

---

<div class="post-metadata">

**Author:** ![rlouie](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rlouie/32/134973_2.png) [@rlouie](https://forum.ionicframework.com/u/rlouie)\
**Post date:** [February 9, 2018, 3:36pm UTC](https://forum.ionicframework.com/t/problem-with-calling-database-plugins-before-they-are-initialized/120990/2 "2018-02-09T15:36:55Z")

</div>

> [@Vartex05](#):
>
> Only platform.ready doesnt help.

It doesn’t? It should. What error are you getting? What’s your code look like?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:51pm UTC](https://forum.ionicframework.com/t/problem-with-calling-database-plugins-before-they-are-initialized/120990/3 "2021-07-19T21:51:21Z")

</div>

Closed on July 19, 2021, 9:51pm UTC


