Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-advanced-background-mode

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-advanced-background-mode - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

98

CHANGELOG.md
## ChangeLog
#### Version 0.7.3 (07.08.2019)
This is more a "just publish all changes after long time" release.
- [___change___:] Removed code for Windows 10 Mobile
- [feature:] Check if screen is off on Android
- [feature:] Wake-up device on Android
- [feature:] Unlock device on Android
- [bugfix:] Plugin not working for Android 8
- [bugfix:] Cannot install plugin on cordova > 9
- [bugfix:] Function `onactivate` does no longer exist
#### Version 0.7.2 (02.02.2017)
- Fixed app freeze on iOS using wkwebview-engine
- Websocket sample in SampleApp
#### Version 0.7.1 (30.01.2017)
- Bug fixes for iOS9 and Android
- Allow app to be excluded from recent list on Android
#### Version 0.7.0 (27.01.2017)
- __Features__
- Support for tAmazon FireOS
- Support for the browser platform
- Ability to configure icon and color on Android
- Allow app to move to foreground on Android
- Allow app to move to background on Android
- Allow app to override back button behaviour on Android
- New events for when the mode has been enabled/disabled
- __Improvements__
- Various enhancements and bug fixes for all platforms
- Support for latest platform and OS versions
- Multi line text on Android
- Multiple listeners for same event
- Compatibility with cordova-plugin-geolocation
- Compatibility with cordova-plugin-crosswalk-webview
- Compatibility with cordova-plugin-wkwebview-engine
- New sample app
- __Fixes__
- Silent mode issues on Android
- Lock screen issues on Android
- Callback not called on Android
- Notification shows app info with cordova-android@6
- Other apps audio interruption on iOS
- __Changes__
- Deprecate event callbacks
- Notification not visible by default on lock screen
- Remove ticker property on Android
- Remove unexpected back button handler
- Remove support for wp8 platform
#### Version 0.6.5 (29.02.2016)
- Published on npm
- Updated dependency ID for the device plug-in
#### Version 0.6.4 (03.03.2015)
- Resolve possibly dependency conflict
#### Version 0.6.3 (01.01.2015)
- [feature:] Silent mode for Android
#### Version 0.6.2 (14.12.2014)
- [bugfix:] Type error
- [bugfix:] Wrong default values for `isEnabled` and `isActive`.
#### Version 0.6.1 (14.12.2014)
- [enhancement:] Set default settings through `setDefaults`.
- [enhancement:] New method `isEnabled` to receive if mode is enabled.
- [enhancement:] New method `isActive` to receive if mode is active.
- [bugfix:] Events caused thread collision.
#### Version 0.6.0 (14.12.2014)
- [feature:] Android support
- [feature:] Change Android notification through `configure`.
- [feature:] `onactivate`, `ondeactivate` and `onfailure` callbacks.
- [___change___:] Disabled by default
- [enhancement:] Get default settings through `getDefaults`.
- [enhancement:] iOS does not require user permissions, internet connection and geo location anymore.
#### Version 0.5.0 (13.02.2014)
- __retired__
#### Version 0.4.1 (13.02.2014)
- Release under the Apache 2.0 license.
- [enhancement:] Location tracking is only activated on WP8 if the location service is available.
- [bigfix:] Nullpointer exception on WP8.
#### Version 0.4.0 (10.10.2013)
- Added WP8 support<br>
The plugin turns the app into an location tracking app *(for the time it runs in the background)*.
#### Version 0.2.1 (09.10.2013)
- Added js interface to manually enable/disable the background mode.
#### Version 0.2.0 (08.10.2013)
- Added iOS (>= 5) support<br>
The plugin turns the app into an location tracking app for the time it runs in the background.
### 1.1.0
- Method `includeToTaskList` added

2

package.json
{
"name": "cordova-plugin-advanced-background-mode",
"version": "1.0.4",
"version": "1.1.0",
"description": "Prevent apps from going to sleep in background.",

@@ -5,0 +5,0 @@ "cordova": {

@@ -12,2 +12,3 @@ Cordova Background Plugin [![npm version](https://badge.fury.io/js/cordova-plugin-background-mode.svg)](http://badge.fury.io/js/cordova-plugin-background-mode) [![Build Status](https://travis-ci.org/katzer/cordova-plugin-background-mode.svg?branch=master)](https://travis-ci.org/katzer/cordova-plugin-background-mode) [![codebeat badge](https://codebeat.co/badges/49709283-b313-4ced-8630-f520baaec7b5)](https://codebeat.co/projects/github-com-katzer-cordova-plugin-background-mode)

- Fix Music stops at Launch on iOS ([issue](https://github.com/katzer/cordova-plugin-background-mode/issues/481))
- Method `includeToTaskList` added

@@ -111,4 +112,4 @@ ### Description

### Recent task list
Exclude the app from the recent task list works on Android 5.0+.
### Exclude from Task list
Exclude the app from the recent task list (works on Android 5.0+).

@@ -119,2 +120,9 @@ ```js

### Include to Task list
Include the app to the recent task list (works on Android 5.0+).
```js
cordova.plugins.backgroundMode.includeToTaskList();
```
### Detect screen status

@@ -124,3 +132,3 @@ The method works async instead of _isActive()_ or _isEnabled()_.

```js
cordova.plugins.backgroundMode.isScreenOff(function(bool) {
cordova.plugins.backgroundMode.isScreenOff((bool) => {
...

@@ -127,0 +135,0 @@ });

@@ -33,3 +33,5 @@ /// <reference path="interfaces/options.d.ts" />

static excludeFromTaskList();
static includeToTaskList();
static overrideBackButton();

@@ -36,0 +38,0 @@

@@ -73,2 +73,7 @@ var plugin = function () {

BackgroundMode.includeToTaskList = function () {
var plu = plugin();
return plu.includeToTaskList.apply(plu, arguments);
};
BackgroundMode.overrideBackButton = function () {

@@ -75,0 +80,0 @@ var plu = plugin();

@@ -232,3 +232,3 @@ /*

{
cordova.exec(null, null, 'BackgroundModeExt', 'tasklist', []);
cordova.exec(null, null, 'BackgroundModeExt', 'tasklistExclude', []);
}

@@ -238,2 +238,15 @@ };

/**
* Include the app back to the recent tasks list (Android only).
*
* @return [ Void ]
*/
exports.includeToTaskList = function()
{
if (this._isAndroid)
{
cordova.exec(null, null, 'BackgroundModeExt', 'tasklistInclude', []);
}
};
/**
* Override the back button on Android to go to background

@@ -240,0 +253,0 @@ * instead of closing the app.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc