3

I have limited HTML, CSS and Javascript experience.

However, I am wondering if it is possible to code a simple website that can set an alarm on whatever device the user is accessing the website on by tapping/clicking a button.

A real world example of the scenario could sound like this: I am a user using Safari on my iPhone. I tap a button on the site I am visiting that reads "Set Alarm for 9:36 AM". My iPhone switches out of Safari and into the native alarm app's "Add Alarm" function with 9:36 AM as the default value.

Thanks.

Uncle Slug
  • 773
  • 1
  • 11
  • 26
  • 1
    Actually, it is possible. Sort of. Calendar reminders works just as good, and they can be added with just two clicks! – Leonard Pauli Jul 28 '13 at 16:05

1 Answers1

2

If you're okay with calendar events, you could just create an ical file (How do I create an iCal-type .ics file that can be downloaded by other users?) and set up a link there (<a href="event.ical">Set alarm</a>). The ical file can then be set to play a signal (reminder). When the user clicks the link on his/her iDevice/Mac, iCal will open and the user will just have to tap save and it's done.

Actually, I think vCalendar (The same? .ics, http://en.wikipedia.org/wiki/ICalendar) will work on all devices.

You should also checkout url protocols to open other apps.

Good luck!

Community
  • 1
  • 1
Leonard Pauli
  • 2,466
  • 1
  • 19
  • 21
  • I looked up some url protocols for native iPhone apps. Apparently there is no protocol for the Clock app, but there is one for the Reminders app. However, I can't seem to find a way to add custom parameters such as setting a date and time. The protocol only opens the app. – Uncle Slug Jul 31 '13 at 14:51
  • I'm saving the calendar app as a last resort because it wouldn't be optimal for this situation, especially if the user specified a recurring event. Although calendar reminders support recurring events, they would also print the event all over the calendar which could be annoying for a user who sets a daily reminder. – Uncle Slug Jul 31 '13 at 19:41