diff --git a/src/plugins/backgroundmode.ts b/src/plugins/backgroundmode.ts index 75d4953a5..d9858877e 100644 --- a/src/plugins/backgroundmode.ts +++ b/src/plugins/backgroundmode.ts @@ -76,17 +76,21 @@ export class BackgroundMode { /** * Checks if background mode is enabled or not. - * @returns {Promise} returns a promise that resolves with boolean that indicates if the background mode is enabled. + * @returns {boolean} returns a boolean that indicates if the background mode is enabled. */ - @Cordova() - static isEnabled(): Promise { return; } + @Cordova({ + sync: true + }) + static isEnabled(): boolean { return; } /** * Can be used to get the information if the background mode is active. - * @returns {Promise} returns a promise that resolves with boolean that indicates if the background mode is active. + * @returns {boolean} returns a boolean that indicates if the background mode is active. */ - @Cordova() - static isActive(): Promise { return; } + @Cordova({ + sync: true + }) + static isActive(): boolean { return; } /** * Override the default title, ticker and text.