The City Docs
7.4
7.4
  • 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 )
    • Firebase [must]
    • 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
  • NOTIFICATION TITLE
  • NOTIFICATION URL
  1. ADMIN PANEL

Notification

FCM Push Notification

PreviousStructureNextMySQL Database

Starting version 6.4 we migrate from GCM to FCM‌

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

  1. GOOGLE_API_KEY - for admin web

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

 const GOOGLE_API_KEY = "AIzaSyBeZB-ciiMdECz..........";

* since version 4.1 gcm notification already support more than 1000 user.‌

NOTIFICATION TITLE

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

NOTIFICATION URL

Check your api.php if your URL still old https://android.googleapis.com/gcm/send you must change it to this https://fcm.googleapis.com/fcm/send

http://blog.dream-space.web.id/?p=49