Set custom alarm notification

2 posts, 0 answers
  1. nepuntobiz
    nepuntobiz avatar
    5 posts
    Member since:
    Nov 2013

    Posted 15 Oct 2014 Link to this post


    I'm creating an application that will let the user set an alarm after a video ends, this alarm should reproduce a particular sound from my application library 2 and 4 hours after the video is over.

    I did see this plugin and I think is pretty much what I need in terms of creating the events at the right time, my question is, can I set an event in the calendar that emits my custom sound when the time is right?

    I'm really new to mobile and I don't know if this is possible with this approach, setting a calendar event. If not can you guys point me in the right direction? What I really need is to be able to make the device emit my custom sound at the right times. I don't need to persist this anywhere either just play the sound.
  2. Tsvetina
    Tsvetina avatar
    1862 posts

    Posted 17 Oct 2014 Link to this post


    I replied to your question in the support ticket that you have opened and I am posting the relevant part of the answer here, in case anyone else is interested:

    I tested the local notifications plugin on an iOS device and it worked fine on my side. I ran the demo app from the Telerik Plugin Marketplace: LocalNotification-DemoApp. You can take a look at it and see if anything is differently set up on your side.

    As for the sound, in iOS there are some restrictions, namely:
    • The right to play notification sounds in the notification center settings has to be granted.
    • Custom sounds must be under 30 seconds when played. If a custom sound is over that limit, the default system sound is played instead.
    • Audio data should be packaged in an aiff, wav, or caf file.

    Make sure that your file complies to them. These requirements and further information are available in the plugin's GitHub repository:
    Cordova Local-Notification Plugin


    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top