Cloud db probolem (using LocationService extension in the background)

Before download the block image, pls change the language to English.

ok ok ok ok

Are you trying to use this in the 'background'?

TaifunLocationService

It will not 'fire' if you are using Taifun's LocationService extension while the app is in the background and will not execute your CloudDB Blocks. It will only write to the TinyDB I believe.

2 Likes

Maybe the LocatingChanged event is fired too often, and the storeValue was too often. Is there any limitations for the frequent of this storevalue?

And you did not say what's your error?

1 Like

ow i thas bad :frowning: It work only it how i can transfer data from divice one to two

You can transfer data between two devices only when the app is awake. I ran a test using Taifun's extension. When my LocationService app is awake, LocationChanged will populate a CloudDB. When the app goes to sleep, it stops transferring data to the CloudDB. When the app is again awake, it will continue to populate the CloudDB again. LocationChanges made while sleeping will not post so you cannot use it as an alarm.

Attached is an example that shows one way to use the CloudDB with the native LocationSensor How to broadcast a GPS location and share the information on a map with others in real time..CloudDB . Load and compile the ShareYourLocation aia at the end of the article.

Does it work? It will not work in the background but will work as long as the app is awake. :slight_smile:

1 Like

but i need to work in background :frowning:

You can save data eg in google sheets.

Or invent Google script that will write data to the database. (I do not know if posible it with cloud db)

I wonna try thanks for help <3

is will work in background

or someone know a fire base work

If you find a way to use the "Post" method to save data in your database it will work in the background. I think @TIMAI2 is a specialist on this.

you think abut extension "Post" block i got it

The Taifun extension has a POST method.
Here you can read about "post", you can also find more on Google.

Google has a service to create GoogleScripts online app. Apps created support the POST method. So you can send data to such an app created in GoogleScripts. You just need to look for a way that the App created in GoogleSripts saved this data to a database to which you could have access from a mobile app.

I do not know another solution. Look for information about Google Scripts integration with a database, or wait for other answers.

it would be very productive if both @Maslo_Herbata and @Patryk_F would please read Taifun's extension documentation. His documentation provides an example showing how to use POST and his extension with a mysqldatabase. Have either of you tried that?

From there, is it possible to key an alarm on your app? I don't know but certainly can not think of anyway to sound an alarm in your app. Neither can I see the possibility of sounding an alarm on your Android using googleScripts while the LocationService is in dormant mode.

Good luck.

Exactly. There is an example, so it is possible. I don't use this extension, I know there is a Post method so it is possible to write to the database. The author needs to save to Cloud DB, probably on MIT servers, and I don't know if it is possible ... I think it's enough, the author probably wants to build a tracking app and follow the route on another device in a different app.

i raed some of this and
and it work with all kind of memory saver or only with tiny one

Reading Taifun's documentation, if it says tinyDB, it probably means only the TinyDB. The only way you can get data outside of the app in real time is using his email and MySql examples (or using another api that allows POST). You can get coordinate history while the app sleeps using the TinyDB when the app is no longer sleeping.

Suggest you learn from Taifun's example app 1. Follow the opt-in URL for the locationservice example app to get access to the app and to be able to download it to your device. Here you can test all the features.

2 Likes

yes it s to hard for me any more sugestion

i found big problem form me he dont use "Location cheanged block " then baybe it
?