-
Notifications
You must be signed in to change notification settings - Fork 1
Server Setup
HB-Hridoy edited this page May 21, 2026
·
4 revisions
- Go to Apps Script
- Create new project
- Rename Project
- Go to
Project Settings
- Enable
Show "appsscript.json" manifest file in editor
- Go to
appsscript.json - Add this field
"oauthScopes": [ "https://www.googleapis.com/auth/script.external_request" ] - Save file
- Paste server script template to your
.gsfile - Set your
SECRET_KEY
- Go to Firebase Console
- Open
Settings
- Copy
Project IDand paste it into your Script
- Go to
Service Accountstab
- Generate new private key
- Download private key json
- Paste your full private key json into
SERVICE_ACCOUNTvariable
- After setting all 3 variables
Save file - Select
testSetup()method - Run script
- On first test run you have to authorize permission
- Click on
Review Permission
- Click
Advance
- Click
Go to FCM Sender Server (unsafe)
- Click
Continueto approve permissions
If test result shows FCM response: 400 • Auth OK that means your script is ready to deploy
- Click
Deploy - Click on
New Deployment
- Click on
Gearicon - Select
Web App
- Add Description
- Keep Execute as
ME - Select Access to
Anyone
Project deployed successfully. Copy Web Url and use it on Extension