localnotification

Is it possible to open running background app on in Objective c

核能气质少年 提交于 2019-12-06 08:35:36
open my app from background running on a specific timing.. want to do somthing like this - (void)applicationDidEnterBackground:(UIApplication *)application { timer = [NSTimer scheduledTimerWithTimeInterval:10 target:self selector:@selector(timerFired:) userInfo:nil repeats:NO]; } - (void)timerFired:(NSTimer*)timer { NSLog( @"yes it is running..."); PickUpCallViewController *call=[[PickUpCallViewController alloc]initWithNibName:@"PickUpCallViewController" bundle:nil]; navi=[[UINavigationController alloc]initWithRootViewController:call]; [[navi navigationController] setNavigationBarHidden:YES

Trying to get the Android LocalNotification plugins for phonegap to work in cordova-1.6.0

≡放荡痞女 提交于 2019-12-06 08:11:10
问题 I'm trying to upgrade a phonegap-1.4.1 project that uses the LocalNotification plugin for Android to cordova-1.6.0 I found this link here: https://github.com/davejohnson/phonegap-plugin-facebook-connect/pull/109 Where it says, For Android: use this.ctx.getContext() method of CordovaInterface object to get Conext object. I edited LocalNotification.java and got my project to compile without errors by changing the following lines: From: alarm = new AlarmHelper(this.ctx); ... final

UNUserNotificationCenter Swift - Local Notification Not Firing in specific cases

微笑、不失礼 提交于 2019-12-06 05:55:50
I'm facing issue while using Local Notifications in application. I'm scheduling local notification with custom content & custom action category. It's scheduling & firing in iOS 11, but not in iOS 10. As per documentation, it should be worked in iOS 10 as well. Please review my code, and let me why it's not working in such specific cases. Code is below. AppDelegate.swift func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { ....... if #available(iOS 10.0, *) { UNUserNotificationCenter.current().delegate =

Handling local notifications when the user presses the icon instead of the alert

依然范特西╮ 提交于 2019-12-05 20:53:47
Here is the situation that I want to handle quoted from Apple's documentation. As a result of the presented notification, the user taps the action button of the alert or taps (or clicks) the application icon. If the action button is tapped (on a device running iOS), the system launches the application and the application calls its delegate’s application:didFinishLaunchingWithOptions: method (if implemented); it passes in the notification payload (for remote notifications) or the local-notification object (for local notifications). If the application icon is tapped on a device running iOS, the

getting local notification while the app is in background

廉价感情. 提交于 2019-12-05 18:22:37
while the app is in background didReceiveLocalNotification is not called. So I try to get the notification from didFinishLaunchingWithOptions - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions { UILocalNotification *notification = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey]; //... } But My App is with Background Mode enable (using external accessory communication) When click on the notification, didFinishLaunchingWithOptions is not called. Any other way to retrieve notification ? By checking Apple's

How to handle UNNotificationAction when app is closed?

限于喜欢 提交于 2019-12-05 11:35:38
How to handle new iOS10 Notification Action when app is closed (not in background) ? when app is minimalized everything works fine with: UNUserNotificationCenter.current().delegate = x and handling it in class x: UNUserNotificationCenterDelegate { func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Swift.Void) { } } but nothing is called when app is closed and user tap action in notification... maybe i can't handle background task and i always have to launch app? Yes, it always

display progress bar in cordova local notification

穿精又带淫゛_ 提交于 2019-12-05 00:04:19
问题 i use this great plugin https://github.com/katzer/cordova-plugin-local-notifications to implement local notification when downloading a file. i don't find how to display a progress bar in the notification like in native one http://javatechig.com/wp-content/uploads/2014/05/Displaying-Progress-Notification-in-Android-Example.png can you help? 回答1: Use plugin cordova-file-Transfer and make the following changes: You can change the plugin this way for android platform. Create class

Swift notification fire from datePicker

心已入冬 提交于 2019-12-04 14:54:38
i want set as local notification fireDate the date of my datePicker. I found that code from another answer at S.O. : @IBOutlet var myDatePicker: UIDatePicker! @IBOutlet var mySwitch: UISwitch! var localNotification = UILocalNotification() // You just need one var notificationsCounter = 0 // put your functions now func datePicker() { myDatePicker.datePickerMode = UIDatePickerMode.Time } func notificationsOptions() { localNotification.timeZone = NSTimeZone.localTimeZone() localNotification.repeatInterval = .CalendarUnitDay UIApplication.sharedApplication().scheduleLocalNotification

Trying to get the Android LocalNotification plugins for phonegap to work in cordova-1.6.0

扶醉桌前 提交于 2019-12-04 14:10:59
I'm trying to upgrade a phonegap-1.4.1 project that uses the LocalNotification plugin for Android to cordova-1.6.0 I found this link here: https://github.com/davejohnson/phonegap-plugin-facebook-connect/pull/109 Where it says, For Android: use this.ctx.getContext() method of CordovaInterface object to get Conext object. I edited LocalNotification.java and got my project to compile without errors by changing the following lines: From: alarm = new AlarmHelper(this.ctx); ... final SharedPreferences alarmSettings = this.ctx.getSharedPreferences(PLUGIN_NAME, Context.MODE_PRIVATE); ... final Editor

Local Notification repeated every day in PhoneGap Android

折月煮酒 提交于 2019-12-04 06:59:13
I am trying to send notifications everyday from my app using LocalNotification plugin that I found at github. I have the following code which sends a notification as soon as the application is started. var notification = cordova.require("cordova/plugin/localNotification"); document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady() { alert('device ready'); var id = 0; id++; newDate = new Date(); newDate.setUTCHours(1,30,1); notification.add({ id : id, date : newDate, message : "Your message here", subtitle: "Your subtitle here", ticker : "Ticker text here",