title: How to know if my iOS app has the correct Bundle ID?
body: <p>I was trying to enable Push Notifications in my iOS app but it does not work because of some error like <code>"Error: Error Domain=NSCocoaErrorDomain Code=3000 « aps-environment ».</code></p>
  
  <p>After some research it may be because of Bundle ID and App ID stuff. Here is the situation:</p>
  
  <p>In the Member Center in iTunes Connect, I have an App ID named "com.mysociety.mywebsitename" which I used to get the certificates to use Push Notifications.</p>
  
  <p>In Xcode, in the General pane of my app project it says that the Bundle ID is "com.mysociety.mywebsitename.appname-", and the app name is in grey color and can't be erased. I don't know why the "appname-" part has been added. Does it mean that my Bundle ID is not correct and that it doesn't match the App ID in the Member Center?</p>