# Doubt about Ionic Creator with Firebase

**URL:** <https://forum.ionicframework.com/t/doubt-about-ionic-creator-with-firebase/139322>\
**Category:** ionic-v1\
**Created:** [August 22, 2018, 6:04pm UTC](https://forum.ionicframework.com/t/doubt-about-ionic-creator-with-firebase/139322 "2018-08-22T18:04:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jecsonbender](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@jecsonbender](https://forum.ionicframework.com/u/jecsonbender)\
**Post date:** [August 22, 2018, 6:04pm UTC](https://forum.ionicframework.com/t/doubt-about-ionic-creator-with-firebase/139322/1 "2018-08-22T18:04:07Z")

</div>

Hello,

I am developing an application with Firebase and I came across a situation that I can not solve. If the user is connected to the internet the system works correctly, however if he loses the connection the application freezes and gives no error message. What I may be doing wrong? Follow the code:

```
 var auth = $firebaseAuth ();
 var userId = firebase.auth (). currentUser.uid;
 var ref = firebase.database (). ref ('users /' + userId) .child ('contas');
 var list = $firebaseArray (ref);

 list () {loaded (). then (function (x) {

         $ scope.itens = {};

         $ scope.itens = list;

         console.log (ok);

 }} catch (function (error) {

         console.error ("Error:", error);

 });

```

Can you give me a hint on how to show a user connection error message?

Tks

---

<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:22pm UTC](https://forum.ionicframework.com/t/doubt-about-ionic-creator-with-firebase/139322/2 "2021-07-19T21:22:49Z")

</div>

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


