Closed Houdhey closed 2 years ago
Sorry, we no longer support Capacitor 2 except for security issues. Consider upgrading to Capacitor 3 https://capacitorjs.com/docs/updating/3-0
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
Capacitor Version
Platform(s)
Android
Current Behavior
Triggerring PushNotifications.register() for Android Device. Getting this error : PushNotifications.register is not a function
I don't want to upgrade Capacitor, our App is in production, and we can't take risks by migrating to another Capacitor version. I can't receive push notifications anymore on Android, and iOS. And when I add this method, Push works for iOS, but not for Android, because of this method having this error
Expected Behavior
Should work, and allow me to receive Push Notifications.
Code Reproduction
Other Technical Details
npm --version
output: 8.5.0node --version
output: v16.14.2