react-native-geo-activity-kit 3.0.0 → 3.0.1

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.
@@ -50,12 +50,14 @@ class SensorModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
50
50
  // --- SERVICE CONTROL ---
51
51
 
52
52
  @ReactMethod
53
- fun startForegroundService(title: String, body: String, promise: Promise) {
53
+ // ADD "id: Int" here. Now it matches JavaScript's 3 arguments.
54
+ fun startForegroundService(title: String, body: String, id: Int, promise: Promise) {
54
55
  try {
55
56
  val intent = Intent(reactApplicationContext, TrackingService::class.java)
56
57
  intent.action = TrackingService.ACTION_START
57
58
  intent.putExtra("title", title)
58
59
  intent.putExtra("body", body)
60
+ // intent.putExtra("id", id) // Optional: Pass it if you want to use it later
59
61
 
60
62
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
61
63
  reactApplicationContext.startForegroundService(intent)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-geo-activity-kit",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Battery-efficient location tracking with motion detection and native notifications.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",