uilocalnotification

How to get local notification when user enters into specific region provided ios

不羁的心 提交于 2020-03-03 10:12:47
问题 I am working on such a project where apps do the following things: 1.Getting user current location. 2. Get local notifications when user enters or nearby the particular locations i provided. What i have done is: I have downloaded the regions sample code(apple provided) to find out my current location using IOS corelocation framework.It works fine.here's the code below: // Create a new region based on the center of the map view. CLLocationCoordinate2D coord = CLLocationCoordinate2DMake

Scheduled Local Notifications showing up when toggled ON for time period when toggled OFF

主宰稳场 提交于 2020-01-24 12:03:29
问题 I have a daily scheduled notification at 8:30:01 PM. When the Notifications are toggled OFF in Settings app for a week, no notifications show up, which is perfect. The problem is when Notifications are toggled back ON in Settings app after that week, all of the Notifications for the previous week show up . I was wondering how to get Notifications to not "build up" so to speak. Is there a line of code I'm missing in here to "clear them out"? ViewController.m : - (void)viewDidLoad { [super

How Can i repeat my local notification sound repeated until i tap on its “”View" button?

雨燕双飞 提交于 2020-01-24 00:22:33
问题 The Notification sound is of 20 sec, but i want to repeat that sound for atleast 60 sec. after that it will snoozed. Here is my precious code :D take a look and please help me... Code:- @interface SetAlarmViewController : UIViewController <UITableViewDataSource,UITableViewDelegate,UITextFieldDelegate>{ IBOutlet UITableView *tableview; IBOutlet UIDatePicker *datePicker; IBOutlet UITextField *eventText; IBOutlet UINavigationBar *titleBar; IBOutlet UIButton *setAlarmButton; } @property

Local Notification every specific day of week

戏子无情 提交于 2020-01-23 02:38:11
问题 I need to create a local notification for a specific time (example at 18.00) fired every working day of week (not Saturday and Sunday) but I can't find examples or tutorial. I want use with swift2.1. How can I create this notification? My problem is define the firedate correctly of the notification 回答1: You can use NSDateComponents to create the exact date for your local notification. Here is the example, how do we create local notification with exact fire date: NSDate *now = [NSDate date];

How can I play a recorded sound using a local notification?

回眸只為那壹抹淺笑 提交于 2020-01-21 06:13:33
问题 I have an app that requires that the user record their own message to be played back at some future time. My intent was to do that using UILocalNotification. Unfortunately, it seems that the sound associated with the local notif has to be stored in the main bundle but the user cannot make a recording and save it in the bundle. How do I get a user recorded sound file to be played via local notification? Alternatively - is there a way if the app is not running to capture the local notification

How can I play a recorded sound using a local notification?

自作多情 提交于 2020-01-21 06:13:27
问题 I have an app that requires that the user record their own message to be played back at some future time. My intent was to do that using UILocalNotification. Unfortunately, it seems that the sound associated with the local notif has to be stored in the main bundle but the user cannot make a recording and save it in the bundle. How do I get a user recorded sound file to be played via local notification? Alternatively - is there a way if the app is not running to capture the local notification

iPhone - UILocalNotification as alarm

老子叫甜甜 提交于 2020-01-21 06:08:11
问题 Even when my iPhone application is in background, How can I use UILocalNotification to show my alram every day at 8.00 PM? 回答1: Set the fireDate to 8.00 PM and set the repeatInterval to NSDayCalendarUnit and schedule the alert with [[UIApplication sharedApplication] scheduleLocalNotification: myNotification]; 回答2: dasdom answer is correct. just wanted to add to it that the alarm will not make a sound if your device is in silent mode. It is a restriction from Apple for UILocalNotification. 回答3

UILocalNotification not doing anything

这一生的挚爱 提交于 2020-01-13 16:30:12
问题 This may seem like a silly question, but this is my first time using UILocalNotification and I can't get it to work for a quick test. It just doesn't do anything. 1. I've created 2 variables in the AppDelegate let today = NSDate() let notification: UILocalNotification = UILocalNotification() 2. Then in the applicationDidEnterBackground function, I have the following notification.fireDate = today.dateByAddingTimeInterval(10) notification.alertTitle = "My App Test" notification.alertBody =

UILocalNotification not doing anything

一笑奈何 提交于 2020-01-13 16:30:11
问题 This may seem like a silly question, but this is my first time using UILocalNotification and I can't get it to work for a quick test. It just doesn't do anything. 1. I've created 2 variables in the AppDelegate let today = NSDate() let notification: UILocalNotification = UILocalNotification() 2. Then in the applicationDidEnterBackground function, I have the following notification.fireDate = today.dateByAddingTimeInterval(10) notification.alertTitle = "My App Test" notification.alertBody =

UIApplication scheduledLocalNotifications is empty for past non-repeating notifications

久未见 提交于 2020-01-13 04:55:26
问题 I have tried out the 3do app which seems to be able to schedule non-repeating notifications and have specific notifications from notification center deleted. It works as this: when app is in background they are delivered in notification center, if you choose one of these notifications 3do will open and you have the option to tap "done", if you tap "done" that specific notification will be removed from the notification center. If you don't tap anything the notification will be left in