ERROR Push Notifications with Firebase in an Ionic - version IOS

I’m using push notifications with Firebase on an Ionic + Angular.

I am following this document:
Capacitor - build cross platform apps with the web
and
Capacitor - build cross platform apps with the web

But I have a problem in the IOS version when adding the code to receive the firebase FCM token from iOS instead of the raw APNS token
erro-push ionic
:
AppDelegate.didRegisterForRemoteNotificationsWithDeviceToken

ERROR: ionic Type ‘NSNotification.Name’ has no member ‘capacitorDidFailToRegisterForRemoteNotifications’

Using:
Ionic Framework
@ionic/angular 5.6.3

Capacitor CLI : 2.4.2
@capacitor/core : 2.4.2

you are using capacitor v3?

Using:
Ionic Framework
@ionic/angular 5.6.3

Capacitor CLI : 2.4.2
@capacitor/core : 2.4.2

The docs have a version chooser, if you are using Capacitor 2 then you should follow Capacitor 2 docs