Posts

Tutorial: Guide to setup up Firebase Cloud Messaging for iOS and Android

Image
  Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably deliver messages at no cost. Using FCM, you can notify a client app that new email or other data is available to sync. You can send notification messages to drive user reengagement and retention. For use cases such as instant messaging, a message can transfer a payload of up to 4KB to a client app. You need an iOS device and Apple Developer account to test push notifications and wont work on Simulators. 1. Creating a Project in FCM Console 1. Goto Firebase Console and click on CREATE NEW PROJECT 2. Click on Project Settings Gear Icon and goto project settings. 1.2. How to add an iOS App to FCM Project 1.Select Add Firebase to your iOS app and enter the bundle id, nickname and click ADD APP. 2.Add the downloaded GoogleService-Info.plist into the root of your Xcode project by selecting all Targets. 3. Pod installation steps Create a pod file if you don't have one $ pod init Open you pod fil...

Tutorial Certificate Conversion and Certificate Testing for APNS

  PUSHTRY.COM reads the certificate and its key from PKCS12 file CER to PEM openssl x509 -in aps_development.cer -inform der -out pushtryCert.pem Private Key’s PKCS12 to PEM openssl pkcs12 -nocerts -out pushtryKey.pem -in pushtry.p12 MAC verified OK Enter PEM pass phrase: Verifying – Enter PEM pass phrase: Combine CER+KEY to PEM cat pushtryCert.pem pushtryKey.pem > ck.pem Inspecting PKCS12 openssl pkcs12 -in pushtry.p12 output will be like: … MAC verified OK Bag Attributes … —–BEGIN CERTIFICATE—– … … —–BEGIN PRIVATE KEY—– … Select appropriate Development or Production, iOS or Mac, and its bundle identifier. Inspecting PKCS12 structureopenssl pkcs12 -in pushtry.p12 -info -noout Inspecting PEM openssl rsa -in pushtry.pem -noout -check openssl rsa -in pushtry.pem -pubout openssl x509 -in pushtry.pem -noout -pubkey PKCS12 to PEM openssl pkcs12 -in pushtry.p12 -out pushtry.pem -clcerts -aes256 Not Recommended: Below command does not encrypt the private key (): openssl pkcs12 -in push...

Migrating from GCM to FCM 2020

Image
  When it comes to driving digital efficiency, three things are required comprising customer engagement, retargeting, and retention. In today’s brutally competitive market, it’s really hard to thrive so. Firebase cloud messaging is a modern tactic that helps brands to remind their subscribed users or customers about their products or services whenever they launch a new product, raise discounts, or want to notify about certain amendments in their services. FCM (Firebase Cloud Messaging) is a product of Google designed to serve improved user experience whether to implement for Android devices or iOS devices. This is such an amazing trending tool that enables enterprises to gain the attention of their targeted or subscribed users and get them back to their app or website. What is FCM? Firebase cloud messaging  is an approach to  send push notifications  to subscribers. It is a product of Google and an updated form or a successor to GCM (Google Cloud Messaging). It acts ...

Tutorial: Guide to Setup up Google Cloud Messaging (GCM) on Android

Image
  Push notifications is used to integrate real-time messaging to your apps. It keeps you stay in touch with users and makes it easy for your users to communicate. Below are the necessary steps required to add this feature to your application. You need Sender ID and API Key for Google Cloud Messaging (GCM). Creating a New App in Google Developers You need to get google-services.json file contains the GCM configurations for your App to send GCM messages to Android Devices The following instructions covers the creation Configuration file Go to Google Developers Click GET A CONFIGURATION FILE Enter the App Name and Application’s package name Click on Continue To Choose and Configuration Service Now in the next screen you will see a button to enable Google Cloud Messaging, click on it. Click Enable Google Cloud Messaging you will get the Server API Key and Sender ID Scroll and click on Continue To Generate Configuration Files Click on Download goolge-services.json button and you will ...

Tutorial: Guide to setup Push Notifications on iOS and OSX

Image
  Push notifications is used to integrate real-time messaging to your apps. It keeps you stay in touch with users and makes it easy for your users to communicate. Below are the necessary steps required to add this feature to your application. You need an iOS device and Apple Developer account to test push notifications and wont work on Simulators. 1. Creating the SSL certificate SSL certificate will help server to allow push notification and the app is identified using App ID 1.1. How to Create an Explicit App ID To install an app in iOS Device App ID is mandatory. These App IDs are in reversed addresses format (ex. com.pushnotif.sample). To support APNS app must use an Explicit App ID. Is it possible to use my existing App ID? If you have an App ID for your app and make sure that it was set up as an Explicit App ID. Wildcard App IDs cannot support APNS. You cannot convert Wildcard App IDs to Explicit App IDs The following instructions cover the creation of a new Explicit App ID. I...