@dubsdotapp/expo 0.2.61 → 0.2.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -21,6 +21,7 @@ if (typeof self === "undefined" && typeof globalThis !== "undefined") {
21
21
 
22
22
  // src/constants.ts
23
23
  var DEFAULT_BASE_URL = "https://dubs-server-prod-9c91d3f01199.herokuapp.com/api/developer/v1";
24
+ var DUBS_EXPO_PROJECT_ID = "aaca4fc9-64be-46b2-9be2-4175cb0f59a2";
24
25
  var DEFAULT_RPC_URL = "https://api.mainnet-beta.solana.com";
25
26
  var NETWORK_CONFIG = {
26
27
  "mainnet-beta": {
@@ -2376,7 +2377,9 @@ function usePushNotifications() {
2376
2377
  return false;
2377
2378
  }
2378
2379
  setHasPermission(true);
2379
- const tokenResult = await Notifications.getExpoPushTokenAsync();
2380
+ const tokenResult = await Notifications.getExpoPushTokenAsync({
2381
+ projectId: DUBS_EXPO_PROJECT_ID
2382
+ });
2380
2383
  const token = tokenResult.data;
2381
2384
  setExpoPushToken(token);
2382
2385
  await registerTokenWithServer(token);
@@ -2408,7 +2411,9 @@ function usePushNotifications() {
2408
2411
  if (!Notifications) return;
2409
2412
  const { status } = await Notifications.getPermissionsAsync();
2410
2413
  if (status !== "granted") return;
2411
- const tokenResult = await Notifications.getExpoPushTokenAsync();
2414
+ const tokenResult = await Notifications.getExpoPushTokenAsync({
2415
+ projectId: DUBS_EXPO_PROJECT_ID
2416
+ });
2412
2417
  const token = tokenResult.data;
2413
2418
  await registerTokenWithServer(token);
2414
2419
  setExpoPushToken(token);