Ionic 5 emulator AVD Internet connection - error? - firebase

I’m trying use the emulator AVD, and my app to showed this error
#firebase/firestore: Firestore (7.16.0): Could not reach Cloud Firestore backend. Backend didn’t respond within 10 seconds.
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
How can emultaor my app with Firebase ?

Thanks Frank Van, its work! I installed all tools of google and work, thanks!

Related

Is there a way I can detect internet connection with Firebase in Unity?

I am working on a mobile game, where I would like to know if the player has internet connection or not.
I tried doing it with the following methods:
Unity's internetReachability property, but it doesn't work, since - as they wrote out in the docs too - it doesn't actually detect if the player has internet connection
Pinging a website that is on 24/7 (e.g Google), but it is bad since if there are thousands of users, it will load Google servers
Now I'm trying to get a result by retrieving data from my Firebase database every X secs, and if it doesn't load, there is no connetction: the problem is, even if there is no internet connection, it doesn't crash/give any error
Is there a way I can achieve what I want with Firebase?
Please note that if the player has no internet connection, they should not be able to click on any of the game functions, because it will cause bugs, so I would like to check for connection continuously. When there is no connection I disable the GUI so that the player can not cause bugs)
If you're using the Firebase Realtime Database, it has a built-in mechanism to show you when the app is connected to the database servers. By listening to the .info/connected node, you can detect this state and update your UI.
Note that this is not just detecting an internet connection, but whether the app is connected to the database backend. So in cases where the user may have an internet connection, but can't connect to the database backend, the flag may be false.

Firebase. How to detect when device network connection is restored?

Our team is faced with a delimma where we need to at app-run time, detect (and then make an action) when a mobile device connection is made with Firebase. Our app needs to store value locally to SQL Lite when offline, and then push these cached values back up to the realtime-database in Firebase when the connection is restored. Presently this re-connection to Firebase is only happening with our App is shutdown and restarted.
It seems that (at least with typescript) everything is governed by the app.component.ts file. Is there a way to force the '.info/connected' to be true when the device network connection comes back .. and do this while our app is still running (memory on the mobile)?

GCP iot Core to pubsub messages not showing up

I am trying to integrate GCP with loraserver using LorixOne Gateway, I am following the guide at https://www.loraserver.io/guides/google-cloud-platform/
However my messages not reaching to loraserver through pubsub.
My setup is as below:
lora end device—>LorixOne Gateway with Lora base OS —> GCP IoT core -> GCP Pubsub —> VM running loraserver
I can see that all messages are reaching to IoT core but nothing can be seen on the pubsub or lora-app-server.
I am following the guide https://www.loraserver.io/guides/google-cloud-platform/ however something is not working ok with GCP PUBSUBHere is picture from GCP logs that I am getting messages to IOT core however nothing reaches to VM via pubsub
So issue here was not from Google cloud iot. there were 2 issues here.
1) gateway id is case sensitive
2) end lorwan device was not transmitting on right AU_915 band
Now all looks good.
Regards
Jayesh

Connecting without Microsoft Health App

I've been tinkering with the microsoft band for a while and i'm trying to connect it to a raspberry pi 3 running android TV(couldn't find any Android phone images), now i've got most normal apps running on the rasp , the microsoft health app crashes when i start it.
Funny thing is though, the costum app i've made to track all the sensors stil gets data from the band when paired, but the band itself just:
says "pairing succes! return to the microsoft health app to continue" So there has to be a way to bypass the app right?
So i'm trying to find a way to get the band linked to this device without the Health App. Or a way to get that app running on my Android image.
I got a logcat of the crash, but i'm not sure if that would be really usefull. Since i can't edit the microsoft health app itself ...right?
Reset the band.
Pair the band to an android phone using health app.
Unpair band from Android phone.
Turn off Bluetooth on band.
Turn on Bluetooth on rpi.
Do a regular (not using health app) pairing the band and the rpi.

How to test network timeout exception on Windows Phone 8 Emulator

My user has reported me an issue of network timeout in my app.
I want to reproduce it on Windows Phone 8 Emulator hosted on Hyper-V.
But since my network is always connected, not like a mobile network, I always have the correct result. Seems to be no way to simlutate network timeout.
Does anyone know how to reproduce this kind of issue?
Thanks!
Try to disable networking in the Hyper-V manager. Here is some example how to enable networking, but you can easily disable it in the same way.

Resources