[Badge Plugin] Configuration of badge number automatically not clear


I've tried to use Badge Plugin in mobile application . The badge counts of  the app'icon work properly well.But When the app's icon is tap,the badge counts were disapper .I don't want to clear the badge number automatically if the user taps the app icon.Although I  configured below code  in System Event(OnApplicationReady),the badge counts being still disapper.

cordova.plugins.notification.badge.configure({ autoClear: false});

Usage documentation Link

Would you guys please let me know how to solve it .

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.