Skip to content

Instantly share code, notes, and snippets.

View nicolasmanurung's full-sized avatar
📚
Learning Something

Nicolas Martinus Manurung nicolasmanurung

📚
Learning Something
View GitHub Profile
class FCMService2 : FirebaseMessagingService() {
private var pendingIntent: PendingIntent? = null
override fun onMessageReceived(remoteMessage: RemoteMessage?) {
Log.e("get_type_data", remoteMessage!!.data.toString())
createNotification(remoteMessage.data)
}
private fun createNotification(messageBody: Map<String, String>) {