What are my options

I am working on an app that makes sure all the members of a certain group are present in the same location as the group leader…

so the idea is that in the app there are groups that consist of members and a group leader, when the leader clicks on a certain button the app checks if each member in the group is present with the leader.

Here is how I thought of doing it, but don’t know the tools I’ll need or even if there is a better way of doing it.

When the group leader clicks on the button the app in each member’s device will retrieve the X, Y by the GPS and calculate the distance between the leader’s XY and his XY, if the distance is lower than 100 meters for example then the member is present.

But problem with that method is that everybody has to have a working internet connection and has to have the location service enabled.

I wanna know if there is another way of doing it like with the Wifi for example and what does it require and if there isn’t what tools/functions will my idea require in order to make the app.

I think you are already on the right track. If you want to know the live position of several people each of them needs internet connection and GPS. There’s nothing you can do about that.

Of course you could use Wifi and determin if the group’s members are connected to it. But therefor you need an open Wifi at the location and I assume that’s not what you want.

The main question is, who needs to know who is in range. Everybody or just the leader/members?

You could let them talk with each other and share some kind of 3 digit code back and forth to check if the can talk with each other. (or take it one step further and use a QR code for that.

The point of the app is to make everything automatic without even opening the app,

Just the leader needs to know if everybody is in range,

When I said wifi, I meant like a the leader’s wifi hotspot and if the devices have recently connected then, it will connect again automatically.

Corona relies on the app being run in the foreground. You cannot depend on any service (GPS, push) to operate normally unless the Corona built app is active on the device.

Unless you are planning on using Enterprise, it doesn’t sound like Corona Sdk is the tool for this project.

Hi Nerox,

You are going to the right way. This is the easiest way for you by using GPS and internet connection. It depends on you if you want to use internet connection on every device or wifi. Even you can use wifi hotspot of leader. If the members will near then automatically they will connect with leader’s hotspot.

I think you are already on the right track. If you want to know the live position of several people each of them needs internet connection and GPS. There’s nothing you can do about that.

Of course you could use Wifi and determin if the group’s members are connected to it. But therefor you need an open Wifi at the location and I assume that’s not what you want.

The main question is, who needs to know who is in range. Everybody or just the leader/members?

You could let them talk with each other and share some kind of 3 digit code back and forth to check if the can talk with each other. (or take it one step further and use a QR code for that.

The point of the app is to make everything automatic without even opening the app,

Just the leader needs to know if everybody is in range,

When I said wifi, I meant like a the leader’s wifi hotspot and if the devices have recently connected then, it will connect again automatically.

Corona relies on the app being run in the foreground. You cannot depend on any service (GPS, push) to operate normally unless the Corona built app is active on the device.

Unless you are planning on using Enterprise, it doesn’t sound like Corona Sdk is the tool for this project.

Hi Nerox,

You are going to the right way. This is the easiest way for you by using GPS and internet connection. It depends on you if you want to use internet connection on every device or wifi. Even you can use wifi hotspot of leader. If the members will near then automatically they will connect with leader’s hotspot.