Questions tagged [notificationcenter]

Notification Center is an interface designed by Apple that allows users to easily view notifications from all applications in one view. Notification Center is available in iOS 5 and up.

Notification Center is an interface designed by Apple that allows users to easily view notifications from all applications in one view. Notification Center is activated by dragging down from the devices status bar (top of screen), and removed similarly by dragging up from the bottom of the screen.

Options for Notification Center include:

  • Weather widget (powered by Yahoo)
  • Stocks widget (powered by Yahoo)
  • Sort by time
  • Sort manually (allows users to manually arrange the order in which notifications will appear from top to bottom)
  • Ability to enable/disable notifications for individual applications

Notification Center is available in iOS 5 and up.

242 questions
0
votes
1 answer

BroadcastReceiver does not react on notifications created in GmcService

Using Xamarin.Android. I have a BroadcastReceiver: public class MyBroadcastReceiver : BroadcastReceiver { public override void OnReceive(Context context, Intent intent) { try { string someExtra =…
0
votes
1 answer

How to access userInfo property in from a Notification?

I have a method when I call the post method of NotificationCenter: func processMessage(message: CocoaMQTTMessage) { Log.d("DestinationTopicHandler: handling message") //message.string: Contains the response of the server …
xhinoda
  • 1,032
  • 1
  • 19
  • 26
0
votes
1 answer

How to add an observer in Objective-C and fire a Notification in Swift 3

I have a notification observer in an Objective C file and I want to fire a notification in a Swift 3 file. Since in Objective C the notification name is a NSString but in Swift 3 it's Notification.Name, how can I get the Obj-C observer to catch the…
Schuey999
  • 4,706
  • 7
  • 21
  • 36
0
votes
2 answers

NotificationCenter -> extra argument

In my app I have complicated architecture, so a little bit of theory at start. When I receive remote notification I call NotificationCenter.default.post(Notification.Name("myName"), object: nil, …
mcgtrt
  • 657
  • 6
  • 22
0
votes
1 answer

FBSDKLikeButton callback in swift facebook SDK v4.21.0

I'm coding in Swift 3 w/Facebook SDK 4.21.0, I'm trying to find a way to add a callback to FBSDKLikeButton so i know when the user actually liked / dislisked something. I have tried both approaches found in this site: - Add a .valueChanged control…
David Homes
  • 2,725
  • 8
  • 33
  • 53
0
votes
1 answer

How do I remove a badge notification from my app after clearing it rather then launching the app

I have an app that will show a notification icon when the user has not been to the app in awhile I can get it to clear when I launch the app but I want it to clear when they swipe clear from their phone notifications. The code I use to clear when I…
0
votes
1 answer

NotificationCenter swift3 Can't observe post

I have 3 notifications: NotificationCenter.default.post(name:NSNotification.Name("Notification1"), object: nil) NotificationCenter.default.post(name:NSNotification.Name("Notification2"), object:…
0
votes
1 answer

How to check only when "Notification Center or Control Center" are triggered in applicationDidBecomeActive

As we all know, applicationDidBecomeActive will call when we open and close the Bottom Control Center / Top Noficication Center. But I want to know in the applicationDidBecomeActive when only because of these 2 events, to handle some functionality…
iOS dev
  • 2,254
  • 6
  • 33
  • 56
0
votes
5 answers

Unrecognized Selector NotificationCenter Swift 3

I've read all of the possible solutions on stack overflow but not one works for me. My code is func foo() { NotificationCenter.default.addObserver(self, selector: #selector(fetchedUser(notification:)) , name: NSNotification.Name.init("dbReady"),…
0
votes
0 answers

Apple wallet pass not shown notification message

I created an eventTicket pass for apple wallet. All working fine, passes added to Wallet, devices are register and I am able to push notification and update the passes successfully. The only problem I've got it's not showing the change message…
0
votes
0 answers

Swift: how to schedule local notification after some seconds

I want my app to schedule a local notification after some seconds it has entered in the background or inactive mode. This is whatIhave done in my view controller, when app enters background mode from it: class HomeViewController:…
0
votes
1 answer

Charts (graphics) in iOS Notification Center?

I have been searching for an app that can display currency-vs-currency (say over a week, 3 months and etc) chart in iOS Notification Center. But they don't seem to exist. I don't mind writing one myself just for the fun of it, but does anyone know…
charleslcso
  • 182
  • 1
  • 1
  • 16
0
votes
1 answer

How do I show all calendar events in "Today View" in iOS 9?

This is a duplicate of the question at the following address, because the answer provided there is incorrect, and I don't have the reputation points to comment or otherwise correct…
0
votes
1 answer

iOS app hanging when swiping notification centre up and down

My app will freeze/hang on occasion after swiping to show the notification centre, and swiping to remove it. Its my understanding that this should not have any impact on my app as it does not place the app in the background or raise any events. Does…
rideintothesun
  • 1,628
  • 2
  • 12
  • 29
0
votes
1 answer

display notification no longer working in El Capitan

I have this function in my .zshrc for when I want to create a notification from a script in my shell: notify() { osascript -e 'display notification "${*}"' } The function just runs that one tiny line of applescript to create a notification with…
Dylan Karr
  • 3,304
  • 4
  • 19
  • 29