Android Color Notification Icon

I found the answer to my question here: https://stackoverflow.com/a/44950197/4394594 I don’t know entirely what the problem was, but by putting the huge png that I was using for the icon into the this tool https://romannurik.github.io/AndroidAssetStudio/icons-notification.html#source.type=image&source.space.trim=1&source.space.pad=0&name=ic_skylight_notification and by placing the generated icons it gave into my mipmap folder, I was able to get the setColor(…) property … Read more

Why push notifications is not working on testflight?

But when i tried to put it on TestFlight for the testers to test it, it didn’t show a push notification but the data is correctly received. That sentence is confusing. If you didn’t get the push notification, what data is correctly received? Anyway, if I recall correctly, for TestFlight you are using an AdHoc … Read more

Swift ios check if remote push notifications are enabled in ios9 and ios10

Apple recommends to use UserNotifications framework instead of shared instances. So, do not forget to import UserNotifications framework. As this framework is new in iOS 10 it’s really only safe to use this code in apps building for iOS10+ let current = UNUserNotificationCenter.current() current.getNotificationSettings(completionHandler: { (settings) in if settings.authorizationStatus == .notDetermined { // Notification permission … Read more

iOS push notification: how to detect if the user tapped on notification when the app is in background?

OK I finally figured out. In the target settings ➝ Capabilities tab ➝ Background Modes, if you check “Remote Notifications”, application:didReceiveRemoteNotification: will get triggered as soon as notification arrives (as long as the app is in the background), and in that case there is no way to tell whether the user will tap on the … Read more

Open a view controller when a iOS push notification is received

You may be having issues with the if (applicationIsActive) condition. Put a breakpoint on -didReceiveRemoteNotification and see whether it executes in different scenarios and see if it goes within the if-condition. (unrelated to a certain extent but worth checking) this question: didReceiveRemoteNotification when in background Note: -didReceiveRemoteNotification will not execute if your app was (initially) … Read more