@capacitor/background-runner 3.1.0-dev.20260828T101804 → 3.1.0-dev.20260901T105544

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,6 @@ import com.getcapacitor.plugin.util.AssetUtil
5
5
  import org.json.JSONObject
6
6
  import java.text.SimpleDateFormat
7
7
  import java.util.Date
8
- import java.util.TimeZone
9
8
 
10
9
  @SuppressLint("SimpleDateFormat")
11
10
  class Notification(jsonObject: JSONObject) {
@@ -26,7 +25,7 @@ class Notification(jsonObject: JSONObject) {
26
25
  var groupSummary: String? = null
27
26
  var channelId: String? = null
28
27
 
29
- private val jsDateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
28
+ private val jsDateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
30
29
 
31
30
  init {
32
31
  id = jsonObject.optInt("id", -1)
@@ -35,7 +34,7 @@ class Notification(jsonObject: JSONObject) {
35
34
  smallIcon = jsonObject.optString("smallIcon", "")
36
35
  ongoing = jsonObject.optBoolean("ongoing", false)
37
36
  autoCancel = jsonObject.optBoolean("autoCancel", false)
38
- actionTypeId = jsonObject.optString("actionTypeId", null)
37
+ actionTypeId = jsonObject.optString("actionTypeId")
39
38
 
40
39
  val scheduleDateString = jsonObject.optString("scheduleAt", "")
41
40
  if (scheduleDateString.isNotEmpty()) {
@@ -14,6 +14,7 @@ import android.os.Build
14
14
  import androidx.core.app.NotificationCompat
15
15
  import androidx.core.app.NotificationManagerCompat
16
16
  import com.getcapacitor.CapConfig
17
+ import com.getcapacitor.PluginConfig
17
18
  import com.getcapacitor.plugin.util.AssetUtil
18
19
  import io.ionic.android_js_engine.capacitor_api.NotificationsAPI
19
20
  import org.json.JSONArray
@@ -23,7 +24,7 @@ import org.json.JSONObject
23
24
  class Notifications(context: Context) : NotificationsAPI {
24
25
  private val manager: NotificationManagerCompat
25
26
  private val context: Context
26
- private val config: CapConfig
27
+ private val config: PluginConfig
27
28
 
28
29
  var defaultSmallIconID = AssetUtil.RESOURCE_ID_ZERO_VALUE
29
30
  var defaultSoundID = AssetUtil.RESOURCE_ID_ZERO_VALUE
@@ -31,8 +32,7 @@ class Notifications(context: Context) : NotificationsAPI {
31
32
  init {
32
33
  this.context = context
33
34
  this.manager = NotificationManagerCompat.from(context)
34
- this.config = CapConfig.loadDefault(context)
35
-
35
+ this.config = CapConfig.loadDefault(context).getPluginConfiguration("LocalNotifications")
36
36
  this.createNotificationChannel()
37
37
  this.createBadgeNotificationChannel()
38
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/background-runner",
3
- "version": "3.1.0-dev.20260828T101804",
3
+ "version": "3.1.0-dev.20260901T105544",
4
4
  "description": "Capacitor Background Runner",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",