Skip to content

Polling was never wired up. #89

@ringo-redbit

Description

@ringo-redbit

There is no proactive token refresh. The SDK was designed to poll (the function exists, clearInstance clears the timeout, clearTimeout runs when tracking is disabled) - but the polling was never wired up. Tokens are only pushed to native at two moments:

  1. initialize() -> fetchAndSetToken()
  2. setLocationTrackingEnabled(true) -> fetchAndSetToken()

After that, the native factory just stores and returns the last token. Stale until JS pushes a new one.

Metadata

Metadata

Labels

triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions