I want to write a program that sends GPS location (lattitude, longitude) at a particular time… so it’s like an alarm, but it’s not buzzing, instead of sending locations at a particular time.
The best way I can think of it is by push notifications from the server, but this would be useless
UPDATE:
I actually wanna create something similar to this, automatic checkin. If this app can be done then what I wanna do is easy, I just check the time, if it fits checkin if not pass.
What you want to do is not practically possible. Unless you use a method to keep your app active in the foreground all of the time, the alarm time will pass and your app will not be activating to run any code. Push notifications from a server are allowed to play sounds, display messages or change your app’s badge number, but they do not run code in your app. Background execution is limited to 10 minutes of runtime, after which the OS will kill your app.