transistorsoft / react-native-background-geolocation

Sophisticated, battery-conscious background-geolocation with motion-detection
http://shop.transistorsoft.com/pages/react-native-background-geolocation
MIT License
2.62k stars 428 forks source link

LICENCE VALIDATION FAILURE on android ( paid licence ) #2091

Closed fxtohex closed 1 month ago

fxtohex commented 1 month ago

Hello we just bought a licence and having some weird issue setting it up.

Your Environment

Expected Behavior

Should not get the LICENCE VALIDATION FAILURE when launching the build.

Actual Behavior

We get a popup with LICENCE VALIDATION FAILURE but the plugin seems to work anyway. (Double checked the package identifier and the key )

Steps to Reproduce

N/A

Context

Trying to test the plugin in a expo preview build on Android

Debug logs

Logs ``` 07-17 17:05:36.665 2120 2397 E TSLocationManager: ╔═════════════════════════════════════════════ 07-17 17:05:36.665 2120 2397 E TSLocationManager: ║ LICENSE VALIDATION FAILURE: com.nojykriders.app 07-17 17:05:36.665 2120 2397 E TSLocationManager: ╠═════════════════════════════════════════════ 07-17 17:05:36.665 2120 2397 E TSLocationManager: ╟─ com.transistorsoft.locationmanager.polygon.license: UNDEFINED 07-17 17:05:36.665 2120 2397 E TSLocationManager: ╚═════════════════════════════════════════════ 07-17 17:05:36.723 2120 2421 D TSLocationManager: [c.t.l.logger.LoggerFacade$a a] ℹ️ Persist config, dirty: [] 07-17 17:05:36.936 2120 2422 I ReactNativeJS: Running "main 07-17 17:05:52.684 2120 2120 I ReactNative: [GESTURE HANDLER] Initialize gesture handler for root view com.facebook.react.ReactRootView{aca0409 V.E...... .......D 0,0-1080,2186 #b} 07-17 17:05:52.686 2120 2422 I ReactNativeJS: '- BackgroundGeolocation is configured and ready: ', false 07-17 17:05:53.209 2120 2421 D TSLocationManager: [c.t.l.l.TSLocationManager a] 07-17 17:05:53.209 2120 2421 D TSLocationManager: ℹ️ Clear last odometer location 07-17 17:05:53.210 2120 2437 D TSLocationManager: [c.t.l.l.TSLocationManager a] 07-17 17:05:53.210 2120 2437 D TSLocationManager: ℹ️ Clear last odometer location 07-17 17:05:53.211 2120 2421 I TSLocationManager: [c.t.l.s.ActivityRecognitionService stop] 07-17 17:05:53.211 2120 2421 I TSLocationManager: 🔴 Stop motion-activity updates 07-17 17:05:53.212 2120 2437 I TSLocationManager: [c.t.l.s.ActivityRecognitionService stop] 07-17 17:05:53.212 2120 2437 I TSLocationManager: 🔴 Stop motion-activity updates 07-17 17:05:53.213 2120 2436 D TSLocationManager: [c.t.l.g.TSGeofenceManager c] 07-17 17:05:53.213 2120 2436 D TSLocationManager: 🔴 Stop monitoring geofences 07-17 17:05:53.214 2120 2437 I TSLocationManager: [c.t.l.service.HeartbeatService stop] 07-17 17:05:53.214 2120 2437 I TSLocationManager: 🔴 Stop heartbeat 07-17 17:05:53.214 2120 2421 I TSLocationManager: [c.t.l.service.HeartbeatService stop] 07-17 17:05:53.214 2120 2421 I TSLocationManager: 🔴 Stop heartbeat 07-17 17:05:53.215 2120 2673 D TSLocationManager: [c.t.l.g.TSGeofenceManager c] 07-17 17:05:53.215 2120 2673 D TSLocationManager: 🔴 Stop monitoring geofences 07-17 17:05:53.216 2120 2437 D TSLocationManager: [c.t.l.http.HttpService stopMonitoringConnectivityChanges] 07-17 17:05:53.216 2120 2437 D TSLocationManager: 🔴 Stop monitoring connectivity changes 07-17 17:05:53.216 2120 2421 D TSLocationManager: [c.t.l.http.HttpService stopMonitoringConnectivityChanges] 07-17 17:05:53.216 2120 2421 D TSLocationManager: 🔴 Stop monitoring connectivity changes 07-17 17:05:53.753 2120 2421 I TSLocationManager: [c.t.l.http.HttpService flush] 07-17 17:05:53.753 2120 2421 I TSLocationManager: ╔═════════════════════════════════════════════ 07-17 17:05:53.753 2120 2421 I TSLocationManager: ║ HTTP Service (count: 0) 07-17 17:05:53.753 2120 2421 I TSLocationManager: ╠═════════════════════════════════════════════ 07-17 17:05:53.825 2120 2422 I ReactNativeJS: '[onProviderChange]', { accuracyAuthorization: 0, 07-17 17:05:53.825 2120 2422 I ReactNativeJS: gps: true, 07-17 17:05:53.825 2120 2422 I ReactNativeJS: status: 2, 07-17 17:05:53.825 2120 2422 I ReactNativeJS: enabled: true, 07-17 17:05:53.825 2120 2422 I ReactNativeJS: network: true } 07-17 17:05:54.680 2120 2120 D TSLocationManager: [c.t.l.l.LifecycleManager onPause] ☯️ onPause 07-17 17:05:56.500 2120 2120 I TSLocationManager: [c.t.l.u.LocationAuthorization$j onPermissionGranted] 07-17 17:05:56.500 2120 2120 I TSLocationManager: ✅ LocationAuthorization: Permission granted 07-17 17:05:56.547 2120 2120 I TSLocationManager: [c.t.l.u.LocationAuthorization d] 07-17 17:05:56.547 2120 2120 I TSLocationManager: 🔵 Should show backgroundPermissionRationale? true 07-17 17:05:56.549 2120 2422 I ReactNativeJS: '[onProviderChange]', { accuracyAuthorization: 0, 07-17 17:05:56.549 2120 2422 I ReactNativeJS: gps: true, 07-17 17:05:56.549 2120 2422 I ReactNativeJS: status: 4, 07-17 17:05:56.549 2120 2422 I ReactNativeJS: enabled: true, 07-17 17:05:56.549 2120 2422 I ReactNativeJS: network: true } 07-17 17:05:56.555 2120 2120 D TSLocationManager: [c.t.l.l.LifecycleManager onResume] ☯️ onResume 07-17 17:05:56.876 2120 2120 D TSLocationManager: [c.t.l.a.TSLocationManagerActivity a] android.permission.ACCESS_BACKGROUND_LOCATION 07-17 17:05:57.821 2120 2120 D TSLocationManager: [c.t.l.a.TSLocationManagerActivity c] eventCount: 0 07-17 17:05:58.048 2120 2120 D TSLocationManager: [c.t.l.a.TSLocationManagerActivity onDestroy] 07-17 17:05:58.698 2120 2120 D TSLocationManager: [c.t.l.l.LifecycleManager onPause] ☯️ onPause 07-17 17:05:58.829 2120 2120 D TSLocationManager: [c.t.l.l.LifecycleManager onStop] ☯️ onStop 07-17 17:06:02.022 2120 2120 D TSLocationManager: [c.t.l.l.LifecycleManager onStart] ☯️ onStart 07-17 17:06:02.109 2120 2120 I TSLocationManager: [c.t.l.u.LocationAuthorization$j onPermissionGranted] 07-17 17:06:02.109 2120 2120 I TSLocationManager: ✅ LocationAuthorization: Permission granted ```
christocracy commented 1 month ago

Plugin version: 1.4.2

Invalid version number. See CHANGELOG and update to latest version.

fxtohex commented 1 month ago

@christocracy Thank you for the answer , i've edited the issue we are using app version 4.16.4 ( i've got confused and set the appCompatVersion as the Plugin version in the issue ... )

christocracy commented 1 month ago

Update to 4.16.5.

https://github.com/transistorsoft/react-native-background-geolocation/blob/master/CHANGELOG.md