Get push notification while App in foreground iOS

For displaying banner message while app is in foreground, use the following method. iOS 10, Swift 3/4 : // This method will be called when app received push notifications in foreground func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { completionHandler([.alert, .badge, .sound]) } iOS 10, Swift 2.3 : @available(iOS … Read more

How does push notification technology work on Android?

From what I’ve heard during an Android developers conference in Israel: There is simply a TCP socket waiting in accept mode on a cloud Google server. The TCP connection had been initiated by the Google Play application. That’s why Google Play must be installed on the device for making Google Cloud Messaging (GCM) (formerly Android … Read more

Generate .pem file used to set up Apple Push Notifications

To enable Push Notification for your iOS app, you will need to create and upload the Apple Push Notification Certificate (.pem file) to us so we will be able to connect to Apple Push Server on your behalf. (Updated version with updated screen shots Here) Step 1: Login to iOS Provisioning Portal, click “Certificates” on … Read more

Does Android support near real time push notification?

Firebase Cloud Messaging FCM FAQ is the new version of GCM. It inherits GCM’s core infrastructure to deliver messages reliably on Android, iOS and Chrome. However they’ll continue to support GCM because lot of developers are using GCM SDKs today to handle notifications, and client app upgrade takes time. As of June 26, 2012, Google … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)