Do you think it's because Apple doesn’t support apps installed from TestFlight?
I saw this info in App ID Configuration under Push Notifications.
Platform Support: iOS, visionOS, tvOS, watchOS, macOS
Provisioning Support: Development, App Store Connect, Developer ID, Ad hoc