Home
last modified time | relevance | path

Searched refs:devicePushToken (Results 1 – 25 of 27) sorted by relevance

12

/expo/packages/expo-notifications/src/
H A DgetExpoPushTokenAsync.ts52 const devicePushToken = options.devicePushToken || (await getDevicePushTokenAsync()); constant
77 const type = options.type || getTypeOfToken(devicePushToken);
88 deviceToken: getDeviceToken(devicePushToken),
202 function getDeviceToken(devicePushToken: DevicePushToken) {
203 if (typeof devicePushToken.data === 'string') {
204 return devicePushToken.data;
207 return JSON.stringify(devicePushToken.data);
228 function getTypeOfToken(devicePushToken: DevicePushToken) {
229 switch (devicePushToken.type) {
236 return devicePushToken.type;
H A DgetDevicePushTokenAsync.ts18 let devicePushToken: string | null;
21 devicePushToken = await nativeTokenPromise;
25 devicePushToken = await nativeTokenPromise;
30 return { type: Platform.OS, data: devicePushToken };
H A DTokenEmitter.ts44 const wrappingListener = ({ devicePushToken }) =>
45 listener({ data: devicePushToken, type: Platform.OS });
H A DTokens.types.ts109 devicePushToken?: DevicePushToken; property
H A DgetDevicePushTokenAsync.web.ts8 SyntheticPlatformEmitter.emit('onDevicePushToken', { devicePushToken: data });
/expo/packages/expo-notifications/build/
H A DgetExpoPushTokenAsync.js46 const devicePushToken = options.devicePushToken || (await getDevicePushTokenAsync());
59 const type = options.type || getTypeOfToken(devicePushToken);
68 deviceToken: getDeviceToken(devicePushToken),
144 function getDeviceToken(devicePushToken) { argument
145 if (typeof devicePushToken.data === 'string') {
146 return devicePushToken.data;
148 return JSON.stringify(devicePushToken.data);
166 function getTypeOfToken(devicePushToken) { argument
167 switch (devicePushToken.type) {
174 return devicePushToken.type;
H A DgetDevicePushTokenAsync.js13 let devicePushToken;
16 devicePushToken = await nativeTokenPromise;
21 devicePushToken = await nativeTokenPromise;
25 return { type: Platform.OS, data: devicePushToken };
H A DTokenEmitter.js33 …const wrappingListener = ({ devicePushToken }) => listener({ data: devicePushToken, type: Platform… field
H A DgetDevicePushTokenAsync.js.map1devicePushToken: string | null;\n if (nativeTokenPromise) {\n // Reuse existing Promise\n d…
H A DTokens.types.d.ts96 devicePushToken?: DevicePushToken; property
H A DgetExpoPushTokenAsync.js.map1devicePushToken = options.devicePushToken || (await getDevicePushTokenAsync());\n\n const deviceI…
H A DgetDevicePushTokenAsync.web.js5 SyntheticPlatformEmitter.emit('onDevicePushToken', { devicePushToken: data }); property
H A DTokenEmitter.js.map1 … Subscription {\n const wrappingListener = ({ devicePushToken }) =>\n listener({ data: deviceP…
H A DTokens.types.js.map1 …h [`getDevicePushTokenAsync()`](#getdevicepushtokenasync).\n */\n devicePushToken?: DevicePushT…
H A DgetDevicePushTokenAsync.web.js.map1 …ionsAsync();\n SyntheticPlatformEmitter.emit('onDevicePushToken', { devicePushToken: data });\n …
/expo/packages/expo-notifications/src/utils/
H A DupdateDevicePushTokenAsync.ts120 function getTypeOfToken(devicePushToken: DevicePushToken) {
121 switch (devicePushToken.type) {
128 return devicePushToken.type;
/expo/packages/expo-notifications/build/utils/
H A DupdateDevicePushTokenAsync.js89 function getTypeOfToken(devicePushToken) { argument
90 switch (devicePushToken.type) {
97 return devicePushToken.type;
H A DupdateDevicePushTokenAsync.js.map1devicePushToken: DevicePushToken) {\n switch (devicePushToken.type) {\n case 'ios':\n ret…
/expo/packages/expo-notifications/ios/EXNotifications/PushToken/
H A DEXPushTokenModule.m98 - (void)onDidRegisterWithDeviceToken:(NSData *)devicePushToken
101 const char *bytes = [devicePushToken bytes];
102 for (int i = 0; i < [devicePushToken length]; i++) {
113 body:@{ @"devicePushToken": stringToken }];
/expo/ios/versioned/sdk47/EXNotifications/EXNotifications/PushToken/
H A DABI47_0_0EXPushTokenModule.m98 - (void)onDidRegisterWithDeviceToken:(NSData *)devicePushToken
101 const char *bytes = [devicePushToken bytes];
102 for (int i = 0; i < [devicePushToken length]; i++) {
113 body:@{ @"devicePushToken": stringToken }];
/expo/ios/versioned/sdk49/EXNotifications/EXNotifications/PushToken/
H A DABI49_0_0EXPushTokenModule.m98 - (void)onDidRegisterWithDeviceToken:(NSData *)devicePushToken
101 const char *bytes = [devicePushToken bytes];
102 for (int i = 0; i < [devicePushToken length]; i++) {
113 body:@{ @"devicePushToken": stringToken }];
/expo/ios/versioned/sdk48/EXNotifications/EXNotifications/PushToken/
H A DABI48_0_0EXPushTokenModule.m98 - (void)onDidRegisterWithDeviceToken:(NSData *)devicePushToken
101 const char *bytes = [devicePushToken bytes];
102 for (int i = 0; i < [devicePushToken length]; i++) {
113 body:@{ @"devicePushToken": stringToken }];
/expo/apps/test-suite/tests/
H A DNotifications.js42 const devicePushToken = await Notifications.getDevicePushTokenAsync();
43 t.expect(typeof devicePushToken.data).toBe('string');
44 tokenFromMethodCall = devicePushToken;
50 const devicePushToken = await Notifications.getDevicePushTokenAsync();
51 t.expect(typeof devicePushToken.data).toBe('object');
52 tokenFromMethodCall = devicePushToken;
/expo/docs/pages/push-notifications/
H A Dsending-notifications-custom.mdx197 const devicePushToken = /* ... */;
203 devicePushToken,
219 devicePushToken,
/expo/docs/pages/versions/v46.0.0/sdk/
H A Dnotifications.mdx389 - **devicePushToken ([_DevicePushToken_](#devicepushtoken))** -- The device push token with which t…

12