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

How to Change the Android Notification Icon/Status Bar Icon for Push-notification in #flutter?

Ajay’s answer is correct, but to expand on it a bit: NOTE: Before starting, make sure your icon/image has a transparent background. The solution will seem like it’s not working if your image background has a color. Create your mipmap notification icon. You can do this easily using Roman’s Notification Icon Generator – Click on … Read more

Flutter: Push notifications even if the app is closed

For reminders i would recomend Flutter Local Notifications Plugin. It has a powerful scheduling api. From the documentation of local notification: Scheduling when notifications should appear – Periodically show a notification (interval-based) – Schedule a notification to be shown daily at a specified time – Schedule a notification to be shown weekly on a specified … Read more

xcode 8 push notification capabilities and entitlements file setting

I was struggling with that today in Xcode 8 GM. After disabling the setting, deleting my developer portal provisioning profile and regenerating it and enabling the setting again, I was able to eliminate the warning in Xcode. Keep in mind that I didn’t fiddle with the entitlements file. I left it at development environment and … Read more

tech