init
Initialize the SDK with the default SwanConfig (production backend, debug logs off).
Parameters
application or activity context — only applicationContext is retained.
tenant identifier (becomes ?appId= on every wire call).
Returns synchronously. Device registration runs asynchronously; observe registrationState or register an addInitializedListener to wait for completion if you need it. Repeat calls with the same arguments are no-ops.
Initialize the SDK.
Parameters
application or activity context — only applicationContext is retained.
tenant identifier (becomes ?appId= on every wire call).
SwanConfig (debug, production, push, location knobs).
Returns synchronously. Device registration runs asynchronously; observe registrationState or register an addInitializedListener to wait for completion if you need it. Repeat calls with the same arguments are no-ops.
Validation: appId is not empty-checked here. An empty appId will surface on the wire as ?appId=, which the backend rejects; surfacing the error there gives the host app a clearer diagnostic than silently swallowing it.