Firebase admin-sdk, GAE (standard) , custom push notification (not thru firebase console)

198 views
Skip to first unread message

Ny Codes

unread,
Nov 15, 2016, 8:51:42 PM11/15/16
to Firebase Google Group
Hi Community,
 What is the suggested practice for having custom push notification logic residing in Google app engine code (java platform). 

Currently creating cloud support module type "App Engine Backend with Google Cloud Messaging" on Android Studio generates notification code based on datastore/objectify with gcm.jar. 
I want to replace datastore with firebase database (seems plausible) and need to send out two types of push notification as mentioned below
  • cron/batch based push notification e.g., push notification payload to John Doe "You were part of 2 group chats yesterday"
    • I can draw inspiration for cron/batch based notification from here(app engine+firebase article).
      Event based notification is something I'm exploring (which brings the firebase case) - need suggestions, articles etc
  • event based notification e.g., push notification payload to Jane Doe - "John just added you to a group chat, click to open"
    • I'm exploring this and hence firebase database child and value events seems to be a good fit (no message queuing though!)
  • Registration - want to replace cloud endpoints with firebase database again
Further any chance that FCM will have a server sdk like authentication and database or do we fall back to gcm.jar apis ?

Thanks

Doug Stevenson

unread,
Nov 16, 2016, 4:31:35 PM11/16/16
to Firebase Google Group
The server protocol is unchanged between GCM and FCM, so you can use an existing GCM client to send messages.  For example: https://mvnrepository.com/artifact/com.google.gcm/gcm-server/1.0.0  (perhaps that is the gcm.jar you refer to?)

One thing to note: The Firebase database java SDK has known problems with GAE standard instances.  You might have more luck with a GAE flexible instance instead.

Doug

Ny Codes

unread,
Nov 16, 2016, 5:09:49 PM11/16/16
to Firebase Google Group

Reply all
Reply to author
Forward
0 new messages