Questions tagged [localnotification]

A Cordova/PhoneGap plugin to create local notifications on iOS devices using hybrid apps

A Cordova/PhoneGap 3.0.0+ plugin to create local notifications on iOS, originally by Olivier Lesnicki. This may be used to schedule notifications or other functions that trigger at some point in the future.

More info at https://github.com/hiattp/Phonegap-LocalNotification

626 questions
3
votes
1 answer

UNUserNotificationCenter Swift - local notification not firing in specific cases

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 working in iOS…
3
votes
1 answer

Local Notifications swift 3

I am trying to send a notification on a button click. This is the code in my viewController: @IBAction func getNotificationButtonPressed(_ sender: Any) { let content = UNMutableNotificationContent() content.title = "Title" content.body =…
Sardzoski
  • 33
  • 5
3
votes
2 answers

(ios10.2)(swift3) How to tell if a user has clicked on a local notification?

I made an app that sends a notification after a certain time when you click a button. This notification was created in the ViewController. How do I make my app do something after the User clicks the notification? I am using swift 3 and not using…
3
votes
3 answers

iOS4 Create Background Timer

I (Basically) need to create a background timer on iOS 4 that will allow me to execute some code when a specific amount of time has passed. I have read that you can accomplish this using some [NSThread detachNewThreadSelector: toTarget: …
Richard J. Ross III
  • 55,009
  • 24
  • 135
  • 201
3
votes
0 answers

How to post a local notification without sound in iOS 10?

UNMutableNotificationContent *content = [[UNMutableNotificationContent alloc] init]; content.sound = [UNNotificationSound defaultSound]; NSDateComponents *components = [[NSDateComponents alloc] init]; components.hour = 0; …
3
votes
1 answer

Use of unresolved identifier 'UIMutableUserNotificationAction'

I have a separate Singleton class containing LocalNotification registration and Action setup code. I am getting Use of unresolved identifier error Added all classes to XCTest target as well.
ibiren
  • 673
  • 6
  • 25
3
votes
2 answers

Swift notification fire from datePicker

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 =…
Swift1
  • 349
  • 1
  • 4
  • 22
3
votes
0 answers

Call a method after a local notification was received in background

When the app is in the background and receive a local notification, I need to execute a method, while the app still on background. Is this possible ?
raed
  • 4,887
  • 4
  • 30
  • 49
3
votes
1 answer

cordova local notification sound not working in ios and Android

I am using cordova-plugin-local-notifications plugin. Now I have issue to get my sound file in both Android and iOS. window.plugin.notification.local.add({ id: '0001', date: new Date, message: 'hello', …
RaviPatidar
  • 1,438
  • 1
  • 18
  • 29
3
votes
4 answers

how to open specific window after clicking on notification in titanium

i want to open a certain page in the app when i click on notification in titanium i'm using titanium SDK 3.5.1 i have created an intent that lanch the app but it open the index page var intent1 = Ti.Android.createIntent({ flags :…
3
votes
1 answer

getting local notification while the app is in background

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…
JosephT
  • 865
  • 1
  • 11
  • 20
3
votes
3 answers

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

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…
3
votes
1 answer

Android Local notifications from background don't have a title

Using this plugin in an Ionic project I have been able to get local notifications going when a GCM push arrives (using ngCordova and the appropriate plugin). The code flows a little something like this: Inside the scope of an abstract app controller…
Hartog
  • 108
  • 7
3
votes
3 answers

How to hide the close button and close action in alert view to display only "Open app" button

I have implemented UIlocalNotification method using the link Adding Local Notifications With iOS 4 in my app my requirement is that in notification alert we need to have only "Show me" button which opens the app by default, we need to force the user…
iOS dev
  • 2,254
  • 6
  • 33
  • 56
3
votes
1 answer

Blackberry - "you currently have no new notifications"

I'm using the code below (especially pushMessage method) to show some notification to user: public final class MyApplicationMessageFolder { public static final long MyFolderId = 0x1256789012F10123L; private ApplicationMessageFolder…
CAMOBAP
  • 5,523
  • 8
  • 58
  • 93