accountLink.appLaunch()
The app has started. This can be sent regardless of signIn state, but for efficiency should be sent when the app has resolved the user's subscription entitlements, if any.
Signature:
$badger.accountLink().appLaunch(subscriptionEntitlements);
Parameters:
| header | header | header | header |
|---|---|---|---|
| subscriptionEntitlements | An array of objects capturing subscription entitlements to packages of content which the user has subscribed to. The object contains the following fields:id - identifier string for the entitlement (string, required)startDate - epoch timestamp (in milliseconds) of when the entitlement goes into effect (date, optional)endDate - epoch timestamp (in milliseconds) of when the entitlement is no longer valid (date, optional) |
array | no |
| #### Return Values: | |||
| None. |
Usage Example:
$badger.accountLink().appLaunch([
{ "id": "Content1" },
{ "id": "contentTwo" },
{ "id": "Content 3" }
]);