Required APNs settings not provided. iOS push notification error on testflight

Hi everyone, I am currently testing my build on testflight internal testing. I created an APNs key, ticked the push notification box and certain everything is done right. However, when I use my android phone to take an action on the app that requires a notification to be sent to the user on iOS, I get this error alert

“required APNs settings not provided”. The android however receives notification successfully when action is taken on the iOS.

The problem was because the iOS and Android were running on different builds. it’s solved