This is a migrated thread and some comments may be shown as answers.

Set custom alarm notification

1 Answer 92 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
nepuntobiz
Top achievements
Rank 2
nepuntobiz asked on 15 Oct 2014, 02:15 PM
Hello,

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 http://plugins.telerik.com/plugin/calendar 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.

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 17 Oct 2014, 02:44 PM
Hello,

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

Regards,
Tsvetina
Telerik
 

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

 
Tags
General Discussion
Asked by
nepuntobiz
Top achievements
Rank 2
Answers by
Tsvetina
Telerik team
Share this question
or