Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Push notifications: Argument of type registrationError is not assignable to parameter of type pushNotification ActionPerformed

$
0
0

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?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>