Push Notification is not working in production environment?

I am facing issue during pushing notifications to the app installed on my IOS(15 beta 5) device(iPhone12). Its working fine locally(in development) but when i configure the same in production( upload app to app store ) its not pushing the notifications to the device.

It sounds like your pushes are failing because you are using the sandbox/development APNs environment to send them, but are using production tokens, or vice versa

Development or Production tokens can only be used in the environments they belong in. The environment a token belongs to is determined by the "aps-environment" entitlement. By default, Xcode will set this to 'development' for debug builds, and 'production' for release builds. So, if you install the app via Xcode, you will get a development token, and if the app is installed from the App Store, you will get a production token.

You will need to make sure that the push is being sent on the environment the token belongs in, or make sure you update your push server with the correct tokens when switching between debug and release builds

Push Notification is not working in production environment?
 
 
Q