I am using FCM Cloud Messaging and I am preparing for launching an application. On the internet, I read things like a sandbox and production certification key (the p8 file). I can not choose between a sandbox and production key when creating a new p8 file through Apple.
I can set the environment type in Firebase, but according to the docs, that does not do anything internally different. Clients apparently can switch at runtime to determine if its a production build or not: How does Firebase Cloud Messaging (FCM) switch the environment of Apple Push Notification service (APNs)?
My question is regarding server side sending push notifications to FCM.
I have a server which sends push notifications through FCM. My question is: does everything works out of the box when going into production? I mean the clients just receive the message, how does FCM know when it receives a new push notification from my server to send it to the sandbox endpoint or production endpoint?