MCPcopy Create free account
hub / github.com/OneSignal/react-native-onesignal / setPushToStartToken

Function setPushToStartToken

src/index.ts:205–211  ·  view source on GitHub ↗
(activityType: string, token: string)

Source from the content-addressed store, hash-verified

203 * @param token: The activity type's pushToStart token.
204 */
205 export function setPushToStartToken(activityType: string, token: string) {
206 if (!isNativeModuleLoaded(RNOneSignal)) return;
207
208 if (Platform.OS === 'ios') {
209 RNOneSignal.setPushToStartToken(activityType, token);
210 }
211 }
212
213 /**
214 * Indicate this device is no longer capable of receiving pushToStart live activities

Callers

nothing calls this directly

Calls 2

isNativeModuleLoadedFunction · 0.90
setPushToStartTokenMethod · 0.65

Tested by

no test coverage detected