This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Cloudflare Worker to relay push notifications to Expo | |
| * Acts as a proxy between our server and https://exp.host/--/api/v2/push/send | |
| */ | |
| // Make sure to generate an API_KEY and store it in your worker secrets | |
| const EXPO_PUSH_URL = "https://exp.host/--/api/v2/push/send"; | |
| const EXPO_PUSH_TOKEN_URL = "https://exp.host/--/api/v2/push/getExpoPushToken"; |