INNER CODE UNIT · TypeScript
setPushToStartToken
OneSignal/react-native-onesignal · src/index.ts:226
export function setPushToStartToken(activityType: string, token: string) {
if (!isNativeModuleLoaded(RNOneSignal)) return;
if (Platform.OS === 'ios') {
RNOneSignal.setPushToStartToken(activityType, token);
}
}
/**
* Indicate this device is no longer capable of receiving pushToStart live activities
* for the `activityType`. The `activityType` **must** be the name of the struct conforming
* to `ActivityAttributes` that will be used to start the live activity.
*
* Only applies to iOS
*
* @param activityType: The name of the specific `ActivityAttributes` structure tied
* to the live activity.
*/