diff --git a/src/plugins/backgroundmode.ts b/src/plugins/backgroundmode.ts index 5133a4f5e1..eecea91201 100644 --- a/src/plugins/backgroundmode.ts +++ b/src/plugins/backgroundmode.ts @@ -123,6 +123,24 @@ export class BackgroundMode { }) static on(event: string): Observable { return; } + /** + * Android allows to programmatically move from foreground to background. + */ + @Cordova({ + platforms: ['Android'], + sync: true + }) + static moveToBackground(): void {} + + /** + * Android allows to programmatically move from background to foreground. + */ + @Cordova({ + platforms: ['Android'], + sync: true + }) + static moveToForeground(): void {} + /** * Override the back button on Android to go to background instead of closing the app. */