To deploy Push Notifications or GCMs (Google Cloud Messaging), you need to upload a certificate or API Key to the Tapjoy dashboard. Separate configurations are needed for iOS and Android. This document explains how to create and upload the necessary certificate.
1. iOS Certificate
To enable Push in your application and generate your certificate file, please follow the instructions from Apple’s developer site here. Please complete the entire "Configuring Push Notifications" section; this includes the sub-sections "Enabling Push Notifications", "Creating Push Notification Client SSL Certificates" and "Installing a Client SSL Signing Identity on the Server".
In the "Installing a Client SSL Signing Identity on the Server" section you will be asked to export the certificate from keychain. Name the file certificate and choose the p12 format. With that p12 file, run the following two terminal commands. The second command will ask you to provide an Export Password; leave the Export Password blank.
openssl pkcs12 -in certificate.p12 -nodes -out temp.pem
openssl pkcs12 -export -in temp.pem -out cert_unprotected.p12
This will give you a p12 certificate that can be uploaded to our dashboard.
2. Android Certificate
To use GCM, you need to obtain a server key from the Google Cloud Console. If you haven’t configured GCM in your project, refer to Getting Started with GCM.
To enable the GCM service:
- In the sidebar on the left, select APIs & auth.
- In the displayed list of APIs, turn the Google Cloud Messaging for Android toggle to ON.
- From Overview, you can obtain the Project Number(e.g. 136515230000). This value is required for calling Tapjoy.setGcmSender for 5Rocks SDK integration.
- Create a new application from APIs & auth > Credentials apps, if you don’t already have one. From here, you can obtain the Server Key. Make sure “Any IP address is allowed” and upload this Server Key to [Game/App > Setting > Push > Certificate]