Frage

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.

War es hilfreich?

Lösung

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!

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top