GCM in Swift Bundle ID Error

后端 未结 1 924
时光取名叫无心
时光取名叫无心 2020-12-22 00:05

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

相关标签:
1条回答
  • 2020-12-22 00:15

    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:

    0 讨论(0)
提交回复
热议问题