Posts

Showing posts from October, 2020

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 ...