# Error connecting to realtime database on Android version 5 and 6

**URL:** <https://community.thunkable.com/t/error-connecting-to-realtime-database-on-android-version-5-and-6/564916>\
**Category:** Questions about Thunkable X\
**Created:** [May 6, 2020, 11:19am UTC](https://community.thunkable.com/t/error-connecting-to-realtime-database-on-android-version-5-and-6/564916 "2020-05-06T11:19:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tehhanvoon](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tehhanvoon](https://community.thunkable.com/u/tehhanvoon)\
**Post date:** [May 6, 2020, 11:19am UTC](https://community.thunkable.com/t/error-connecting-to-realtime-database-on-android-version-5-and-6/564916/1 "2020-05-06T11:19:00Z")

</div>

I have an app that connects to realtime db.  
It works well with Android 9 and 10 phone.

But when comes to Android 5 and 6, it gives the following error:

o.default.get(this.settings).database is not a function. (In ‘o.default.get(this.settings).database()’, ‘o.default.get(this.settings).database’ is undefined)

Seeking assistance from whom may have the solutions to it.

 ![error](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/e/eedde051e903f32dd093c3a3c965ea74c6ec1503.jpeg)

![Screenshot 2020-05-06 at 7.18.31 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/3/639c51f5ef6d0c31567260dc2a9338839b2548ff.png)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [May 6, 2020, 12:16pm UTC](https://community.thunkable.com/t/error-connecting-to-realtime-database-on-android-version-5-and-6/564916/2 "2020-05-06T12:16:03Z")

</div>

HI @tehhanvoon 👋

Thanks for the thorough feedback -

> [@tehhanvoon](#):
>
> It works well with Android 9 and 10 phone.
> 
> But when comes to Android 5 and 6, it gives the following error:

Have you tested this on 4 different physical devices, or are you using an emulator?

---

<div class="post-metadata">

**Author:** ![tehhanvoon](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tehhanvoon](https://community.thunkable.com/u/tehhanvoon)\
**Post date:** [May 6, 2020, 1:57pm UTC](https://community.thunkable.com/t/error-connecting-to-realtime-database-on-android-version-5-and-6/564916/3 "2020-05-06T13:57:59Z")

</div>

Hi Dom,

Thanks for the swift response.  
Indeed I did test on 4 different units of phone (Huawei-Android 10, Samsung-Android 9, Vivo-Android 5 and Oppo-Android 6).

I found the behaviour of issue.

I ran the iQuickReg.staff app on Android 9 and 10 using Thunkable Live, which is working fine. But once i download and installed the iQuickReg.public as APK on these Android 9 and 10 phone, it failed.

At the same time, I download and installed the iQuickReg.public as APK on these Android 5 and 6 phone, it failed too.

Refer to the image below, on the left is the app on Thunkable Live which is successfully Sign in. On the right is the installed APK of the same app which failed to Sign in.

Do you have any idea what could possibly be happening?

 ![IMG_20200506_214150](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/7/77cb7dcdc0117f76efe50dad314b23d90b1792c1.jpeg)

---

<div class="post-metadata">

**Author:** ![tehhanvoon](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tehhanvoon](https://community.thunkable.com/u/tehhanvoon)\
**Post date:** [May 7, 2020, 4:14am UTC](https://community.thunkable.com/t/error-connecting-to-realtime-database-on-android-version-5-and-6/564916/4 "2020-05-07T04:14:47Z")

</div>

The problem was found to be Download Android App has an issue.

This issue was resolved by Thunkable Team.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:29am UTC](https://community.thunkable.com/t/error-connecting-to-realtime-database-on-android-version-5-and-6/564916/5 "2024-11-08T11:29:23Z")

</div>


