diff --git a/README.md b/README.md index 9e0e68d..6c10c60 100644 --- a/README.md +++ b/README.md @@ -164,7 +164,7 @@ __Note:__ All properties are optional - only override the things you need to. In silent mode the plugin will not display a notification - which is not the default. Be aware that Android recommends adding a notification otherwise the OS may pause the app. ```js -cordova.plugins.backgroundMode.configure({ silent: true }); +cordova.plugins.backgroundMode.setDefaults({ silent: true }); ```