[Capacitor] Integration with cordova plugin


#1

Hi

I just finished a try-out with capacitor, trying to add the cordova plugin badge.

First, exactly according to the documentation (using npm i cordova-plugin-badge), then trying ionic cordova plugin add.

And in all cases, doing the npx cap sync and just to be sure npx cap copy

Using the blank starter in Ionic. Adding the command cordova.plugins.notification.badge.set(10); to set the badge (using a button on the page).

But no badge number set (using emulator), when launching the app from Android Studio

The app runs as capacitor app. So that isn’t the problem.

Anyone have experience adding cordova plugin in capacitor?

Regards

Tom


#2

Nevermind. Working on real device. Is emulator issue.