I'm using LocalNotication to set schedule Alarm. atribute repeatInterval allow me to set repeat each minute, each hour.. But I want to set repeat each two minutes? How can i do?
try looking at this blog posting
http://useyourloaf.com/blog/2010/9/13/repeating-an-ios-local-notification.html
You can schedule 30 alarms. One for each 2nd minute for a whole hour, and set repeatInterval to each hour fo each of the 30 notifications.
I've filed a bug report/enhancement at http://bugreport.apple.com/
You may take a look at my report archived at Open Radar: http://openradar.appspot.com/radar?id=759402
According to Marco, developer of Instapaper, Apple prioritizes enhancement and feature requests partly based on how many developers are requesting them.
If this feature is important to you I urge you to file a report as well.
Related
I am scheduling UILocalNotifications in my project. At present I am scheduling the notification for the daily basis. Now the client has asked to do particular scenarios like scheduling for every second week. Is there a way to do this? Please can any one suggest a solution.
Thanks In Advance
The answer provided here can be adjusted to suit your needs.
Changing localNotification.repeatInterval = NSDayCalendarUnit; to localNotification.repeatInterval = NSWeekCalendarUnit; (after extracting it out using NSDateComponents) will be a start.
Use Ekeventkit store to show alert on particular dates/days etc.
You should go through Apple documentation
I have an Appcelerator question.
Is there somekind of callback for new ACS reviews? One way to do this
is to make the app refresh every x-seconds.. but this will quickly use too much resources.
Imagine 10 people use it for 10 minutes, with auto-refresh set for 10 seconds.. it will amount to 10x6x10 = 600 API calls! And that is only for 10 people for 10 minutes, and what if they are online for 1 month??
So having a callback which notifies only if there is a NEW review will greatly of help here.
Is there actually a way doing this that I've missed, or other workarounds? Thanks!
One possible solution is through push notifications?
Microsoft word allows us to add datetime stamp which will update datetime and sync up with system datetime. I am looking for a similar item. Is there a countdown item available?
Usage: When I send a document to my colleague I mention this event will happen in 5 minutes.
Ex: I will kick the build in 5 minutes.
I am trying to express the same in the following way
Build will happen in 5:00 Minutes
after a second
Build will happen in 4:59 Minutes
after five minute
Build will happen in 0:00 Minutes
or
Build happend
Does MSword capable of doing this?
Thanks,
Esen
There is no count down timer control kind of thing available. You have to write a macro to do that for you. Even if you use macro, unless the receipt user enable its content he wont see it. I would suggest use a javascript and send email with html body
i want to send a notification each day at the same time with different information. I got no problem with showing the alert when i want to. The problem is what to show. First i tried to schedule one alert every day with different information in them, but that seems really inefficient. Then i tried with
-(void)application(UIApplication*)app didReceiveLocalNotification:(UILocalNotification *)Notif{}
but found out that it runs when the application is running in foreground only.
Is there any way to provide an array or something like it with the alert and tell the alert to get its body from the array with different index for different days?
Or should i do it with some notification that can run when the app is in background mode and the alert show and make a new alert?
All information must be provided when you schedule a local notification, so no, a notification's body cannot be sourced from an array as you described. If users are likely to open your app often and you know notification content in advance, perhaps you could ensure that x notifications are always scheduled (could be achieved by inspecting UIApplication's scheduledLocalNotifications).
This solution isn't ideal though, as it relies on users opening your app on a (somewhat) regular basis. I think push notifications are probably your best bet, but that requires access to a server, etc.
Yeah push could prob be the solution. But i dont have a server for that. The users will most likeley not open it any more after they have opened it the first time to activite the local-messages. So then this isnt really possible to do without push. when i tried a for-loop to schedule 250 days with different text each day it took about 2 minutes on iphone 4 so its not duable.
I have a local notification that I would like to fire every 5 minutes. I use:
localNotif.repeatInterval = NSMinuteCalendarUnit
that will have the notification happen once every minute. I can't figure out how to get this to happen every 5 minutes or whatever other >1 minutes interval. I've tried:
localNotif.repeatInterval= 5 * NSMinuteCalendarUnit
and that doesn't work. Can anyone help me to solve this problem.
Check out this blog http://useyourloaf.com/blog/2010/9/13/repeating-an-ios-local-notification.html
Has a tutorial on how to repeat notifications with an xcode project.
Also maybe it is worth using
NSLog(#"Count: %i", [[[UIApplication sharedApplication] scheduledLocalNotifications] count]);
To check how many notifications your app has registered?
jissa you can't set a 5 minute interval by doing a 5 * NSMinuteCalendarUnit. The current implementation of UILocalNotification does not allow you to fine tune the interval. So you're stuck with every second, every minute, every hour, every day, every week, every month... etc etc.
I've filed a bug report/enhancement at http://bugreport.apple.com/
You may take a look at my report archived at Open Radar: http://openradar.appspot.com/radar?id=759402
According to Marco, developer of Instapaper, Apple prioritizes enhancement and feature requests partly based on how many developers are requesting them.
If this feature is important to you I urge you to file a report as well.