I am having trouble in executing Google Cloud Messaging in Swift. Using GCMExample
for objective C I am getting the Registration token but when I am trying to r
Seems the Bundle ID in your GoogleService-Info.plist
does not match the bundle ID in your target.
First you need to add the GoogleService-Info.plist
file to a correct target, if you are trying the GcmExampleSwift
, you should select that as the target:
Then in your GoogleService-Info.plist
file, if you want to use com.XXXXXX.mobility.appfactory.dev1.social
as your bundle ID, make sure you spell it correctly in for the BUNDLE_ID
key:
Finally, in your targets, make sure you select the GcmExampleSwift
first (NOT the GcmExample
which is the Objective - C target), then make the the Bundle Identifier
matches the BUNDLE_ID
in your GoogleService-Info.plist
file: