Failed to get device token

When we are resigning the app though MDM and publishing it, then after installation this error is coming as it is failing to retrive device token and following error is giving. Though in app settings we can see there is permission for APNS.

"Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x17026a840 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}"


Have anyone faced such problem? Please provide a resolution.

Failed to get device token
 
 
Q