I got two iOS Swift Apps. The first one already exists in the App Store, let's say it is called "ExistingStoreApp". The second App I created only to test Push-Notifications with Firebase Cloud Messaging (FCM), I call it "PushyTestApp".
What I do not understand: Sending Push-Notifications via Firebase-Console -> Notifications only works in PushyTestApp, but not with the ExistingStoreApp, although i did the same procedure on my ExistingStoreApp to make Firebase run. I did the following:
- Create APNs AuthenticationKey in Apple Dev. Console (https://firebase.google.com/docs/cloud-messaging/ios/certs)
- Create App ID with explicit Bundle-ID (Difference between ExistingStoreApp and PushyTestApp here: ExistingStoreApp-App-ID already exists)
- Create Provisioning-Profile
- Create App (difference: ExistingStoreApp already exists)
- Add CocoaPods with pod 'Firebase/Core' & pod 'Firebase/Messaging' -> pod install (https://firebase.google.com/docs/cloud-messaging/ios/client)
- In Xcode App-Capabilities: Push Notifications turn ON, Remote Notifications under Background Modes turn ON
- Use Existing Firebase-Project (Android running and working) and add new iOS App
- Upload APN AuthKey to Firebase-Project-App
- Download GoogleService-Info.plist -> Add to XCODE-Source dir
- Fill AppDelegate.swift with example Code (https://github.com/firebase/quickstart-ios/blob/master/messaging/MessagingExamapleSwift/AppDelegate.swift)
- Send Message via Firebase-Console with priority: high
result: PushyTestApp connected successful to Firebase, got FCM-Token, shows Message-content in XCODE-console. ExistingStoreApp connected successful to Firebase, got FCM-Token, no reaction when sending message with Firebase-Console.
I did not disable Method Sizzling. Which part did I miss? I thought it would be the Bundle-ID which is not conventional ("My-Company.My-Appname") but a similar Bundle-ID worked with PushyTestApp. Is it because the ExistingStoreApp is already a distributed App, an PushyTestApp is Development?