You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building the app on Android, even if I'm not actually calling the plugin (only have it installed in the package.json) it throws the below error in the PushNotificationPlugin.java:
error: no suitable method found for createNotificationInfo(Context,Context,NotificationParams,String,Bundle) CommonNotificationBuilder.DisplayNotificationInfo notificationInfo = CommonNotificationBuilder.createNotificationInfo( ^ method CommonNotificationBuilder.createNotificationInfo(Context,NotificationParams) is not applicable (actual and formal argument lists differ in length) method CommonNotificationBuilder.createNotificationInfo(Context,String,NotificationParams,String,Resources,PackageManager,Bundle) is not applicable (actual and formal argument lists differ in length)
Expected Behavior
The library should not throw an error and the Android platform should compile correctly.
Code Reproduction
Created a project using Angular Ionic, installed the latest version of the plugin, synced it and ran it on Android.
Other Technical Details
This is whilst using the latest version of Android Studio, using Ionic Angular as the platform to build the project on and simply installing the plugin.
Additional Context
The text was updated successfully, but these errors were encountered:
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 the plugin, please create a new issue and ensure the template is fully filled out.
Bug Report
Plugin(s)
@capacitor/push-notifications
Capacitor Version
Platform(s)
Android
Current Behavior
When building the app on Android, even if I'm not actually calling the plugin (only have it installed in the package.json) it throws the below error in the PushNotificationPlugin.java:
error: no suitable method found for createNotificationInfo(Context,Context,NotificationParams,String,Bundle) CommonNotificationBuilder.DisplayNotificationInfo notificationInfo = CommonNotificationBuilder.createNotificationInfo( ^ method CommonNotificationBuilder.createNotificationInfo(Context,NotificationParams) is not applicable (actual and formal argument lists differ in length) method CommonNotificationBuilder.createNotificationInfo(Context,String,NotificationParams,String,Resources,PackageManager,Bundle) is not applicable (actual and formal argument lists differ in length)
Expected Behavior
The library should not throw an error and the Android platform should compile correctly.
Code Reproduction
Created a project using Angular Ionic, installed the latest version of the plugin, synced it and ran it on Android.
Other Technical Details
This is whilst using the latest version of Android Studio, using Ionic Angular as the platform to build the project on and simply installing the plugin.
Additional Context
The text was updated successfully, but these errors were encountered: