Categories
App Development Uncategorized

Configure Push Notifications – OneSignal

iOS

We need to upload a .p12 push certificate to OneSignal.

  • CMD-Space and Enter Keychain Access
  • Keychain Access -> Certificate Assistant -> Request a Certificate From A Certificate Authority
  • Enter Email, Common Name and Select Save to Disk
  • Save CertificateSigningRequest.certSigningRequest somewhere convenient
  • Go to developer.apple.com -> Certificates, Identifiers & Profiles
  • + Create a New Certificate -> Apple Push Notification service SSL (Sandbox & Production)
  • Select an App ID for your Apple Push Notification service SSL Certificate
  • Upload a Certificate Signing Request (Select previously generated file CertificateSigningRequest.certSigningRequest)
  • Download and double click the .cer file generated
  • Keychain Access -> Login -> Right click the Apple Push Services cert and select export -> choose .p12
  • OneSignal dashboard -> select the OneSignal app and upload the .p12 file under Native App Platforms -> iOS

Android

We need a Firebase App (Server Key and Sender ID) for OneSignal.

  • Go to https://console.firebase.google.com/
  • Create a new project
  • Go to Settings Icon -> Project Setting
  • Select the Cloud Messaging tab
  • Grab the Server Key and Sender Id
  • Go to the One Signal Dashboard and select the OneSignal App
  • Go to Settings -> Platforms -> Google Android
  • Add the previously saved Firebase Server Key and Sender Id and click save