Hi all,
I have a problem when a try to request permissions with @capacitor/push-notifications plugin. I followed every step described in the README and I’m using Ionic and Vue 3.
The other posters have covered the underlying concern better than I can, but is there any chance the proximate cause of your issue is the same as this thread?
I resolved my issue editing the MainActivity.java file:
public class MainActivity extends BridgeActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Initializes the Bridge
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
// Additional plugins you've installed go here
//...
add(com.capacitorjs.plugins.pushnotifications.PushNotificationsPlugin.class);
}});
}
}
but this is not specified in any tutorial, so it could be something for my configuration.