uilocalnotification

Are scheduled UILocalNotifications part of iOS device backup?

£可爱£侵袭症+ 提交于 2019-12-30 08:33:09
问题 I mean, our app schedules a couple of local notifications. User makes a backup of the system and restores it on a new device. Will previously scheduled local notifications fire on the new system, or do we need to reschedule them again on the new system? 回答1: Finally I forced myself to do the test. The result: YES - scheduled local notifications are part of backup , this means they are restored and scheduled on the new device. The restore overwrites any previously scheduled local notifications

IOS Cancelling Local Notifications

瘦欲@ 提交于 2019-12-30 06:38:10
问题 I dont like asking vague questions but I couldnt exactly tell what the problem is. In my app I set some daily local notifications. Shooting everyday at 200PM. I later removed the codes that sets the local notifications, and added push notification feature. I test the push and it works (whenever I want to). But I still get the old notifications as well, could it be because I set them earlier somewhere on the phone itself. Is there a way to cancel them without coding. For example are they

PhoneGap / iOS LocalNotification App Crashes on tapping “View”

人盡茶涼 提交于 2019-12-30 04:50:09
问题 I'm having trouble here: I have the app set to not run in the background, and I'm setting a dailyInterval localnotification using a localNotification plugin I found on github here: https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/LocalNotification The app crashes when the notification pops up, and I tap "View"... looks like something is being sent along and it doesn't know what's going on. I, also don't know what's going on since Objective C is a foreign language to me. Anyone

How to repeat local notifications on specific days of the week (iOS Swift 3)

空扰寡人 提交于 2019-12-29 08:26:09
问题 I am creating my first app that lets the user set alerts for themselves and then the app would send the user a local notification on the set time. The thing that I'm having trouble with now is being able to fire the local notification on specific days of the week (for example every Mondays and Tuesdays only). All the tutorials/questions that I have come across so far (like this one) have only been about scheduling the notification everyday/everyweek. The desired result that I'm trying to

Set repeatInterval in local notification

烂漫一生 提交于 2019-12-29 00:40:31
问题 I want to set repeat interval to the value which user selects from date picker.I have date picker of type countdown mode in my application.If user selects 4 hours 15 minutes from date picker then I am setting firedate using the following code and alarm rings. [NSDate dateWithTimeIntervalSinceNow:[pickerTimer countDownDuration]] But I want that notification should repeat after every 4 hours 15 minutes until user cancels it. I have done r&d searched a lot but I can not figure out.The code I

Custom repeat interval for UILocalNotification

假装没事ソ 提交于 2019-12-28 03:51:26
问题 I tried the Re.minder app and noticed that it can repeat reminders with custom intervals (such as every 3 minutes, every 2 hours, every 4 days,...). How can I do that? 回答1: Thanks for trying our app! It turns out, we're not actually using UILocalNotification repeatInterval to accomplish that. Given it's limitations (only one NSCalendarUnit), we actually wrote our own scheduler. This has it's own limitations, mainly the 64 local notification queue limit per app. We essentially schedule and

Displaying a stock iOS notification banner when your app is open and in the foreground?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-27 11:04:28
问题 When Apple's official iOS Messages app is open and in the foreground, new messages from other contacts trigger a stock, native iOS notification alert banner. See image below. Is this possible in 3rd party apps on the App Store? Local and/or Push Notifications for your app while your app is open and in the foreground ? When testing my app , notifications are received but no iOS alert UI is shown . But this behavior is seen in Apple's official Messages app: The Local and Remote Notification

Displaying a stock iOS notification banner when your app is open and in the foreground?

旧巷老猫 提交于 2019-12-27 11:01:44
问题 When Apple's official iOS Messages app is open and in the foreground, new messages from other contacts trigger a stock, native iOS notification alert banner. See image below. Is this possible in 3rd party apps on the App Store? Local and/or Push Notifications for your app while your app is open and in the foreground ? When testing my app , notifications are received but no iOS alert UI is shown . But this behavior is seen in Apple's official Messages app: The Local and Remote Notification

Share object state between View Controllers in IOS development

怎甘沉沦 提交于 2019-12-25 09:06:37
问题 My app has two tabs on a main TabViewController. The first tab shows a list of the fruits I like. The second tab send a request to an api while you type, searching for fruits with the name searched. If the user clicks on any fruit, I'll show a fruit detail view, where It's possible to like the fruit (if it's already liked, you can unlike). Now, I'm trying to achieve something like: The user searchs for a fruit The user likes the fruit The user navigates back to the list List shows the fruit

Background Task works on Simulator only

﹥>﹥吖頭↗ 提交于 2019-12-25 05:29:07
问题 Background I have created a sample timer app that counts from a specific value down to zero. A label displays how much time is left. Every time the NSTimer (1s interval) calls countDownSecs() it prints how many seconds are left and executes println("countDownSecs()") . When the countdown has reached 0 seconds it sends a local push notification. When running in the simulator that works and even for like 5 minutes it stays in the background and continuously prints the seconds left and