Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(background-mode): Promise callbacks never fired. #1457

Closed
ramoncarreras opened this issue May 3, 2017 · 0 comments
Closed

bug(background-mode): Promise callbacks never fired. #1457

ramoncarreras opened this issue May 3, 2017 · 0 comments

Comments

@ramoncarreras
Copy link

ramoncarreras commented May 3, 2017

Hi,
I'm using @ionic-native/background-mode@3.6.1.

If I execute the following code, console does not show any log.

let bkgmodeConfig: BackgroundModeConfiguration = {
    title: this.translateService.instant("app.background-mode.notification-title"),
    text: this.translateService.instant("app.background-mode.notification-message"),
    color: "000000" ,
    icon: "icon"
};

this.backgroundMode.setDefaults(bkgmodeConfig).then(
    () => {
        console.log('[backgroundMode] setDefaults success');
    },
    () => {
        console.error("[backgroundMode] setDefaults error");
    }
);
this.backgroundMode.configure(bkgmodeConfig).then(
    () => {
       console.log('[backgroundMode] configure success');
    },
    () => {
        console.error("[backgroundMode] configure error");
    }
);

My system information:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: 1.9.0
ios-sim version: 5.0.11
OS: macOS Sierra
Node Version: v7.1.0
Xcode version: Xcode 8.3.2 Build version 8E2002

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants