0

I am making a project to track the school bus and want to sent the current bus location to parents' mobile device.

I am looking for a way to broadcast the location of one device to other devices in a pre-defined group.

Is it possible to communicate with all of the applications in the group without having to set up my own server/host/database?

it's possible to get location of another app device?

murlee patle
  • 27
  • 1
  • 2
  • 8

1 Answers1

1

You can use push notifications for this.

It is possible to use Firebase Cloud Messaging (which is the new replacement for Google Cloud Messaging) to broadcast a message to several devices. You can see a complete walkthrough here. You'll probably be particularly interested in topic messaging. You could also do the same thing with Google Cloud Messaging, but keep in mind that that service is deprecated.

There are other push notification services as well (for example, through Amazon Web Services).

This kind of a solution generally doesn't require that you maintain your own server.

Please also see this answer for other options.

Community
  • 1
  • 1
  • i am send bus location to php and i got the location on client app but how to notify client when bus come area of 100 meter of his home location location – murlee patle Dec 16 '16 at 14:48
  • 1
    @murleepatle You could get his house location from Google Maps API or something (or have the user enter the info) and compare it to the known bus location. – EJoshuaS - Stand with Ukraine Mar 04 '17 at 16:43