简体   繁体   中英

GCM “upgraded” to FCM

It seems to no longer be possible to enable the gcm api for new apps. If I'm using parse-server as a BaaS which requires gcm to push notifications out on Android side and I can no longer do that because fcm breaks that implementation. What now? I believe this is Google's way of pushing developers off of parse-server and into the arms of Firebase. Is it in fact possible to use fcm with parse-server or am I going to have to use a different push provider and implement parse-server's pushadapter?

Sending fcm message requires same setup for push as gcm on parse-server. Be sure to use serverApiKey and senderId from firebase console in settings. Also be sure to add

    <meta-data android:name="com.parse.push.gcm_sender_id"
        android:value="id:senderId" />

At the bottom of manifest and note that gcm_sender_id is the same as fcm senderId

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM