Google provides a sample app that details the procedure
Step 1:
sudo gem install cocoapods
This installs the cocoapods
After this run the below command to get the Google project
pod try Google
This basically checks out all the sample apps in cocoapods under Google.
Step 2:
Next Step was to get the configuration file
For this step, had to enter the bundle ID that has the APNS feature and also has the p12 certificate
Now, the console asked the p12 certificate and after uploading the certificate, go the GCM server key and the sender ID
Then had to enable which services to be enabled. Selected the Google Cloud Messaging and moved on. Below few screenshots details the process involved
finally, this gave the GoogleServices-Info.plist file.
This file was added to all the targets and ran the app on the device. This successfully registered the APNS and there is a Google token also associated with it.
Now run the Server Demo app and give the registration token and the server API key and the message should appear on the app.
References:
No comments:
Post a Comment