@dubsdotapp/expo 0.2.61 → 0.2.62

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.js CHANGED
@@ -95,6 +95,7 @@ if (typeof self === "undefined" && typeof globalThis !== "undefined") {
95
95
 
96
96
  // src/constants.ts
97
97
  var DEFAULT_BASE_URL = "https://dubs-server-prod-9c91d3f01199.herokuapp.com/api/developer/v1";
98
+ var DUBS_EXPO_PROJECT_ID = "aaca4fc9-64be-46b2-9be2-4175cb0f59a2";
98
99
  var DEFAULT_RPC_URL = "https://api.mainnet-beta.solana.com";
99
100
  var NETWORK_CONFIG = {
100
101
  "mainnet-beta": {
@@ -2430,7 +2431,9 @@ function usePushNotifications() {
2430
2431
  return false;
2431
2432
  }
2432
2433
  setHasPermission(true);
2433
- const tokenResult = await Notifications.getExpoPushTokenAsync();
2434
+ const tokenResult = await Notifications.getExpoPushTokenAsync({
2435
+ projectId: DUBS_EXPO_PROJECT_ID
2436
+ });
2434
2437
  const token = tokenResult.data;
2435
2438
  setExpoPushToken(token);
2436
2439
  await registerTokenWithServer(token);
@@ -2462,7 +2465,9 @@ function usePushNotifications() {
2462
2465
  if (!Notifications) return;
2463
2466
  const { status } = await Notifications.getPermissionsAsync();
2464
2467
  if (status !== "granted") return;
2465
- const tokenResult = await Notifications.getExpoPushTokenAsync();
2468
+ const tokenResult = await Notifications.getExpoPushTokenAsync({
2469
+ projectId: DUBS_EXPO_PROJECT_ID
2470
+ });
2466
2471
  const token = tokenResult.data;
2467
2472
  await registerTokenWithServer(token);
2468
2473
  setExpoPushToken(token);