push-notification
Controlling which view controller loads after receiving a push notification in SWIFT
Updated for Swift 4.2 Like it was said, you want to register to remote notifications in applicationDidLaunchWithOptions : func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let pushSettings = UIUserNotificationSettings(types: [.alert, .badge, .sound], categories: nil) UIApplication.shared.registerUserNotificationSettings(pushSettings) UIApplication.shared.registerForRemoteNotifications() } There is no way to know in which viewController you will be when you … Read more
REST API with active push notifications from server to client
I would use RabbitMQ and consume events forwarding them as push notifications. This will work while the user is not actively connected to the website and enhance the engagement with each user experience that will return to the website when notified for more information see How to setup basic web push notification functionality using a … Read more
Flutter show app icon badge on push notification
You can control the badge count from the notification payload. If you send a notification manually from Firebase Console, you can set the badge count on Additional options step: If you send it programmatically, add this payload (iOS example): {“aps”:{“alert”:”Enter your message”,”badge”:1,”sound”:”default”}} For more payload options, check out FCM documentation
postgres LISTEN/NOTIFY rails
You’re looking in the right place with the wait_for_notify method, but since ActiveRecord apparently doesn’t provide an API for using it, you’ll need to get at the underlying PG::Connection object (or one of them, if you’re running a multithreaded setup) that ActiveRecord is using to talk to Postgres. Once you’ve got the connection, simply execute … Read more
Push Notifications in Mavericks iOS Simulator
iOS 8 and Xcode 6 did indeed add some additional integration to push notifications. If you select the iPhone 6 or iPhone 6 Plus simulator your app will now appear under Settings with a full featured notifications settings screen (see attached) and will show the in app modal when requesting push notification permissions for the … Read more