title: remoteMessage firebase expecting function invocation
body: <p>I'm learning firebase cloud messaging. I've implemented it in app run notification, but it seems that doesn't work. The problem is that, when I use the firebase keyword called <code>remoteMessage</code>, it says that it needs to be an invocation. Here's the code:</p>
  <pre><code>package com.example.fbtutorial
  
  import android.os.Looper
  import android.widget.Toast
  import com.google.firebase.messaging.FirebaseMessagingService
  import com.google.firebase.messaging.RemoteMessage
  import com.google.firebase.messaging.ktx.remoteMessage
  
  class MyFirebaseMessagingService : FirebaseMessagingService() {
      override fun onMessageReceived(p0: RemoteMessage) {
  
          Looper.prepare()
  
          Toast.makeText(baseContext, remoteMessage.notification?.title, Toast.LENGTH_LONG).show() // here at remoteMessage I have and error saying &quot;Function invocation 'remoteMessage(...)' expected&quot;
  
          Looper.loop()
      }
  }
  
  </code></pre>
  <p>if you know why i get this error please tell me, thanks in advance.</p>