Can Thunkable write a geofence?

Hi, everyone I have something to help. Can Thunkable write a geofence?
if not, can the app inventer write it?

Hey! This is a topic touched on occasionally. In short, the answer is yes. In practice it’s only mildly difficult.

use a dope backend

Both of these can complete the geoqueries in the backend

Alternatively you can code this part


  • Easy as heck to use (can share an example)
  • Fast but 25$ per month to implement

:fire: Firestore

  • Hard as F to use
  • Fast & free (within very generous limits)


do the

1 Like

Yes, I’ve built geofencing into my apps (although I just learn that term from this tread).

The biggest barrier I have encountered is that thunkable doesn’t run in the background. If the phone is on and the app is being display, you have a few options. But unless both are true, I don’t think the you will be able to tell if someone is within your fence.

The notification when an app enters your fence area is a bit tricky with Thunkable (vs. 3rd party apps as jaredgibb suggests).

Within Thunkable, you can use the Firebase Listeners and Data Change blocks to message user only if the app is open. Keeping all of those asynchronous calls straight is tricky (as jaredgibb indicated). It is free and does not require a Thunkable PRO membership.

You can use One Signal to send messages to a specific users to send push notifications outside of the app. This requires a paid PRO Thunkable membership. But that doesn’t get you much, since the app must be open to detect entry into the fence.


Yup. Teds right. But really, you may not want that running 24/7. It would be a battery drain.

You can do this tho!

Thanks, I read and still I’m confused because I just started to learn

Telling us what you want your app to do will help us give you more specific suggestions.

1 Like

I think there is functionality.
1.Locate people
2.tracking people and navigator people
4.geofence and nontification
use firebase to collect data.

#1 use the Location sensor
#2 tracking people (use the map, the location sensor, timer, firebase updates)
#2 navigating people. This is very difficult in Thunkable. Consider using a link to google maps like this
#4 This is extremely complicated in Thunkable, but it is possible. you will need to
a) Define your fence (coordiate list)
b) check if current coordiates (location sensor) are within the fenced area
c) notify the user (alert or push)

Again, you have a good idea for an app. But the app will not be easy. I would suggest you trying some simple screens using the following:

  1. Map
  2. Location Sensor
  3. Firebase Save
  4. Firebase Get
  5. Firebase Add Listener
  6. Firebase Data Change
  7. One Signal Push notification

Once you know how to use each of these components, try combining them. Then you can ask the group specific questions.


I have to use thunkable or thunkable x, what’s the difference?

Thunkable “Classic” is no longer supported. It was the original version of Thunkable. You will need to use Thunkable X. The X standard for Cross (X) platform.

ohh ok, Can thunkable retrieve data from another network server?

What do you mean by “another network server?” Thunkable can access a number of online datasources (Firebase, airtable, Google sheets), as well as REST API access.


The device I got, it’s a small device with a gps tracking sensor.

Well, if you can make the API work, I suppose so. Not rally what thunkable is for, but it could be possible.

Best of luck