- Log in at console.developers.google.com
- Create a project
- From the Dashboard, select "Use API"
- Select "Cloud Messaging for Android" from the "Mobile APIs" section
- Click "Enable API"
After completing the server side, follow these steps
- Navigate to Google Developers Portal
- Select your App's Name, enter the android package name EXACTLY as the "id" in your cordova config.xml
- Select "CONTINUE TO Choose and configure services arrow_forward"
- Select "Cloud Messaging", and Enable Cloud messaging
- You will now see the Server API key - This should be configured on the Synthesis Server ("google.api.key")
- And the "Sender ID" which must be configured on the mobile app (SynthConfig.androidSenderID)
- You do not have to continue with the wizard, a config file is not required.
(You'll have to do these steps on a Mac)
- Log in at Apple Developer Portal
- Click on "App IDs" at "Identifiers" on the left navigation
- Click on the App ID for your application.
- Check that "Push Notifications" are enabled,
- if not, select edit, and tick the "Push Notifications" box
- Select Create certificate for development
- Follow the prompts to create the certificate, save all files generated and downloaded in the "keys" directory of the project. Use the "ios-dev" or "ios-prod" directories depending on the environment you are creating it for. - User email: Any email address (preferably your own) - Common name: Synthesis Push Development|Production - Request is: Saved to disk
- Upload CSR on website
- Download the generated certifcate from website and save into ios-dev directory. (You might have to move it if your Mac automatically saves to another directory)
- From your keystore, export the private key, of the key you just created (Apple Push Services: <app id>) -> <app name> Push [Development|Production]. - Export as .12 and save as "SynthesisMobile.p12" in the "keys" (ios-dev or ios-prod) directory of this project. - Leave the password blank. - This file will be saved as SynthesisMobile.p12
- Now that you have all the keys, use the create_keys.sh script in the "keys" directory to generate the server key for you navigate the "keys" directory and execute
./createKeys.sh
(You might have to rename some files for the script to work) - "Enter Import Password" : leave blank
- "Enter PEM pass phrase" : Choose a password and remember it
- "Verifyin - Enter PEM pass phrase" : Enter same password
- "Enter pass phrase for private_dev_key.pem" : Enter same password
- "Enter Export Password" : Enter same password
- "Verifying - Enter Export Password" : Enter same password
- Once done, you will have a
SynthesisMobile-development-server.p12
file which must be placed on the Synthesis Server - Configure
push.apple.key.file=file:///opt/synthesis_home/SynthesisMobile-development-server.p12
push.apple.key.passphrase=<your password>