I just updated to Capacitor 4 and my Ionic React app is failing to build with the following message:
No overload matches this call.
The last overload gave the following error.
Argument of type ‘“registrationError”’ is not assignable to parameter of type ‘“pushNotificationActionPerformed”’.
Here’s the code at issue in index.tsx:
PushNotifications.addListener('registrationError', (error: JSON) => {
debugLog('push registration error', error);
logMyError(
'pushNotificationsRegistrationError',
`${JSON.stringify(error)}`,
);
});
I checked the docs for Push Notifications but registrationError
is still listed in the Example section.
Any idea what’s going on here?