Skip to content

[Help Wanted]: Migrating to v5.0.5 display a toast message LICENSE VALIDATION FAILURE #1651

@rick-hl

Description

@rick-hl

Required Reading

  • Confirmed

Plugin Version

5.0.5

Mobile operating-system(s)

  • iOS
  • Android

Device Manufacturer(s) and Model(s)

iPhone 12 mini

Device operating-systems(s)

iOS 26.0

What do you require assistance about?

After migrating to v5.0.5, when I open the app, a toast message is displayed

TsLocationManager LICENSE VALIDATION FAILURE Token must have 3 segments

My com.transistorsoft.locationmanager.license is not in xxxxx.yyyyy.zzzzz format.

When running in actual device. (--profile --flavor stg)
Image

When running in simulator. (--debug)
Image

[Optional] Plugin Code and/or Config

bg.Config(
          app: bg.AppConfig(
            startOnBoot: false,
            stopOnTerminate: false,
            backgroundPermissionRationale: bg.PermissionRationale(
              title: Strings.permissionAndroidRationaleTitle,
              message: Strings.permissionAndroidRationaleCaption,
            ),
          ),
          activity: const bg.ActivityConfig(
            minimumActivityRecognitionConfidence: 50,
            // No activity sensor usage
            disableMotionActivityUpdates: true,
          ),
          geolocation: bg.GeoConfig(
            locationTimeout: 120,
            distanceFilter: 300.0,
            desiredAccuracy: Platform.isIOS
                ? bg.DesiredAccuracy.navigation
                : bg.DesiredAccuracy.high,
            activityType: bg.ActivityType.automotiveNavigation,
            // Makes sure distance filter triggered every xxx meters
            disableElasticity: true,
            disableLocationAuthorizationAlert: true,
          ),
          http: bg.HttpConfig(
            rootProperty: '.',
            headers: {
              Constants.keyGfSecretToken: tokenToUse,
              Constants.keyGfApiKey: apiKey,
            },
            autoSync: true,
            url: '$baseUrl${Endpoints.tracking}',
          ),
          persistence: const bg.PersistenceConfig(
            locationsOrderDirection: 'ASC',
            locationTemplate:
                '{"Latitude":"<%= latitude %>", "Longitude":"<%= longitude %>", "Timestamp":"<%= timestamp %>", "BatteryLevel":"<%= battery.level %>", "IsCharging":"<%= battery.is_charging %>", "PollEvent":"<%= event %>"}',
            maxDaysToPersist: 14,
            maxRecordsToPersist: -1,
          ),
          logger: bg.LoggerConfig(
            debug: DevUtils.showTrackingDebugging,
            logLevel: DevUtils.showTrackingDebugging
                ? bg.LogLevel.debug
                : bg.LogLevel.off,
            logMaxDays: 3,
          ),
        ),

[Optional] Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions