The City Docs
7.5
7.5
  • Welcome
  • ADMIN PANEL
    • Import Project
    • Structure
    • Notification
    • MySQL Database
    • Add New Category
    • News Info
    • Custom Color
    • Change Log
  • ANDROID
    • Getting Started
      • Installation
      • Import Project
    • Structure
    • Package Name ( app id )
    • Push Notification
    • REST API
      • Configure API Url
      • Validate Your Web
    • Category
      • Integration
      • Add New
    • Remote Config
    • Ad Networks
    • Maps Configuration
    • Sort By Distance
    • Lazy Load
    • SQLite Database
    • Custom Color
    • Change Log
  • License
Powered by GitBook
On this page
  1. ADMIN PANEL

Notification

FCM Push Notification

PreviousStructureNextMySQL Database

Last updated 10 months ago

Starting version 7.5 we migrate from Firebase to One Signal

To make fcm works for admin web you need to have ONESIGNAL credentials, here the tutorial ​‌

1. ONESIGNAL_API_KEY & ONESIGNAL_APP_ID - for admin web

after you obtain all of that please edit app/services/api.php Edit this one

const ONESIGNAL_API_KEY = "MGZlZGY1OWUtZmE1Yy00ODExxxxxxxxxxxx";
const ONESIGNAL_APP_ID 	= "7137ae44-68bexxxxxxxxxxxxxxxxxxxxxxx";.‌

NOTIFICATION TITLE

1. open file app/controllers/place_add.js function sendGcmNotification() 2. and for news at app/controllers/news_add.js function sendGcmNotification()‌

https://documentation.onesignal.com/docs/keys-and-ids