Permissions Notification Push

Implement push notifications in iOS with firebase and everything works very well if I install the application like this:

ionic cordova run ios -l -c -s

Ask for the permissions and also send the notifications correctly. However, when I install the application from Xcode, I do not receive the alert for the permissions, nor do I receive the notifications. From the Firebase console, I do not get any error either.