Firebase "RemoteMessage" not found, VS Version 8.10.18 (build 11), CloudMessaging 8.10.0

Pat Caruthers 96 Reputation points
2022-02-10T18:32:33.67+00:00

My ios application uses Firebase Cloud Messaging.

I updated VS this morning to Version 8.10.18 (build 11) and also all of the packages
I have:
Xamarin.Firebase.iOS.CloudMessaging 8.10.0
Xamarin.Firebase.iOS.Core 8.10.0
Xamarin.Firebase.iOS.Installations 8.10.0
Xamarin.Firebase.iOS.InstanceID 4.8.0

My app was compiling and working before the update but now gets this error:

Error CS0246: The type or namespace name 'RemoteMessage' could not be found (are you missing a using directive or an assembly reference?) (CS0246)

Anyone know the fix?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,367 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pat Caruthers 96 Reputation points
    2022-02-17T20:15:08.033+00:00

    Solved --

    Looking at the AppDelegate.cs file for the CloudMessaging sample (on git hub) shows the fix is to simply remove the code that references RemoteMessage. Apparently things have been cleaned up so it is no longer needed.

    I removed those lines, updated the packages and things compile and seem to be working.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.