Get the "index.js" file from firebase functions folder :
https://github.com/akshayejh/Firebase-Device-to-Device-Push-Notification
// IMPORTANT NOTE //
- Node version should be greater than 6.3.0
- Npm should be installed with Node
- Firebase CLI tools should be installed globally
- Firebase Login should be done to the account that you're using to create Firebase project
- Make sure you select "Functions" from list using 'space bar' or else it wont create all files.
OR
- you can use "Firebase init funct
آی-ویدئو