ReadonlyactionsReadonlyanalyticsReadonlyandroidiOS only accessors
ReadonlychannelReadonlycontactReadonlyfeatureReadonlyinReadonlyiiOS only accessors
ReadonlylocaleReadonlymessageReadonlypreferenceReadonlyprivacyReadonlypushAdds a listener.
The listener type.
The listener.
A subscription.
Returns the deep link that launched the app from a notification tap, or null if the app was not launched by a notification with a deep link.
Only reflects a cold app launch or background-to-foreground launch
triggered by the tap. A notification tapped while the app is already in
the foreground will not be returned here; use the EventType.DeepLink
listener below for that case.
One-shot: the value is consumed on read. Intended to be wired as React
Navigation's linking.getInitialURL, with an EventType.DeepLink
listener as linking.subscribe:
const linking = {
prefixes: ['myapp://'],
getInitialURL: () => Airship.getLaunchDeepLink(),
subscribe: (listener) => {
const subscription = Airship.addListener(
EventType.DeepLink,
(event) => listener(event.deepLink)
);
return () => subscription.remove();
},
};
A promise with the launching deep link, or null.
Checks if Airship is ready.
A promise with the result.
Removes a listener.
The event type.
The event listener. Should be a reference to the function passed into addListener.
Calls takeOff. If Airship is already configured for the app session, the new config will be applied on the next app init.
The config.
A promise with the result. true if airship is ready.
Airship