EddyVerbruggen / cordova-plugin-app-icon-changer

Change the homescreen icon of your Cordova iOS app at runtime!
MIT License
32 stars 20 forks source link

AppIconChanger.isSupported is not firing #6

Closed msmadja closed 5 years ago

msmadja commented 5 years ago

I'm trying to use this plugin under Angular project using Cordova. I installed the plugin and I tried to change the icons. but I didn't get any callback.

AppIconChanger.isSupported((supported) => {
          console.info("AppIconChanger Supported? " + supported);
          AppIconChanger.changeIcon(
            {
              iconName: `icon_${ containerCustomer.app_id }.png`,
              suppressUserNotification: true
            },
            () => {
              console.log("icon Updated");
            },
            (err) => {
              console.log(err)
             }
          );
        });

I run the app on iOS 12 Iphone 7.