Skip to content

Commit

Permalink
Merge branch 'android-sdk-34'
Browse files Browse the repository at this point in the history
  • Loading branch information
transistorsoft-pkg committed Jul 31, 2023
2 parents 046f04e + 0a306bb commit e0f4fa8
Show file tree
Hide file tree
Showing 24 changed files with 36 additions and 27 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# CHANGELOG

## [7.2.0] — 2023-07-31
* [Android] Android 14 (SDK 34) support.
* [Android] Android 14 (SDK 34) support: When using `forceAlarmManager: true`, you must now optionally add the permission `android.permission.USE_EXACT_ALARM` to your `AndroidManifest` to schedule **exact** alarms. Otherwise `AlarmManager` will use **in-exact** alarms. **NOTE** You must include the permission **exactly as-shown** with __`android:minSdkVersion="34"`__.

:open_file_folder: `AndroidManifest`
```xml
<platform name="android">
<config-file parent="/manifest" target="app/src/main/AndroidManifest.xml">
<uses-permission android:minSdkVersion="34" android:name="android.permission.USE_EXACT_ALARM" />
</config-file>
.
.
.
</platform>
```

## [7.1.3] &mdash; 2023-07-07
* [Android] Add Cordova `onDestroy` listener to manually set `LifecycleManager.setHeadless(true)`.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-background-fetch",
"version": "7.1.3",
"version": "7.2.0",
"description": "A plugin to periodically awaken your app in the background every 15 minutes to perform some work.",
"main": "./src/typescript/index.js",
"types": "./src/typescript/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plugin xmlns="http:https://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http:https://schemas.android.com/apk/res/android"
id="cordova-plugin-background-fetch"
version="7.1.3">
version="7.2.0">
<name>CDVBackgroundFetch</name>
<description>Cordova Background Fetch Plugin</description>
<license>MIT</license>
Expand Down
9 changes: 4 additions & 5 deletions src/android/CDVBackgroundFetch.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@
import android.util.Log;

public class CDVBackgroundFetch extends CordovaPlugin {

private static final String ACTION_SCHEDULE_TASK = "scheduleTask";

private static final String FETCH_TASK_ID = "cordova-background-fetch";

private static final String HEADLESS_JOB_SERVICE_CLASS = "com.transistorsoft.cordova.backgroundfetch.BackgroundFetchHeadlessTask";

@Override
protected void pluginInitialize() { }
protected void pluginInitialize() {
Log.d(BackgroundFetch.TAG, "[CDVBackgroundFetch pluginInitialize]");
BackgroundFetch.getInstance(cordova.getContext());
}

public boolean execute(String action, JSONArray data, CallbackContext callbackContext) throws JSONException {
Log.d(BackgroundFetch.TAG, "[CDVBackgroundFetch] " + action + "()");
Expand Down
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
af44a32cdb09a03a689c200b736f411a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0e158ccd4f879c6aad1d8de295e6cb78058ce0c5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
687157ff2d33b092bf8da054ac941b8446db9a10b8472bc60f83e0cee15a4287
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c4d5cbb4580a593d3bd37773c0aac3e495dbf6dd827104b3f03374053e8edd8a518f73d929fd6e703dffbf3d5e50a00e3f3c8b5e9021dbc1aa8fca91065a9a32
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http:https://maven.apache.org/POM/4.0.0 http:https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http:https://maven.apache.org/POM/4.0.0"
<project xsi:schemaLocation="http:https://maven.apache.org/POM/4.0.0 https:https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http:https://maven.apache.org/POM/4.0.0"
xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.transistorsoft</groupId>
<artifactId>tsbackgroundfetch</artifactId>
<version>0.5.7</version>
<version>1.0.1</version>
<packaging>aar</packaging>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3c98fa60cb758b3930b581e77a4043ab
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
497b30d1abd4b1610e1765bd5695b6d84be3e424
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3fc2e1b6711baa7acd0da31e130db434b88b59f2f76fc1dd246300b775a5ac4b
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b5f6c4f9ccdad09f96d18febe87398209d3e30b4c23e93ad993fe80e859ce5f3370bc96e725d7d9601c81fe05ef8c8bc884f8daa4c4c91652b2fc2fd1b9325a6
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,11 @@
<groupId>com.transistorsoft</groupId>
<artifactId>tsbackgroundfetch</artifactId>
<versioning>
<latest>0.5.7</latest>
<release>0.5.7</release>
<latest>1.0.1</latest>
<release>1.0.1</release>
<versions>
<version>0.5.1</version>
<version>0.5.2</version>
<version>0.5.3</version>
<version>0.5.4</version>
<version>0.5.5</version>
<version>0.5.6</version>
<version>0.5.7</version>
<version>1.0.1</version>
</versions>
<lastUpdated>20230707165915</lastUpdated>
<lastUpdated>20230730203222</lastUpdated>
</versioning>
</metadata>

0 comments on commit e0f4fa8

Please sign in to comment.