This is the code
public override void OnCreate()
{
try
{
base.OnCreate();
//If debug you should reset the token each time.
#if DEBUG
FirebasePushNotificationManager.Initialize(this, true);
#else
PushNotificationManager.Initialize(this,false);
#endif
//Handle notification when app is closed here
CrossFirebasePushNotification.Current.OnNotificationReceived += (s, p) =>
{
};
//CrossFirebasePushNotification.Current.Subscribe("Managers");
}
catch(Exception ex)
{
string err = ex.Message;
}
}
The error goes in this line
FirebasePushNotificationManager.Initialize(this, true);
EDIT1
After giving a clean and adding these lines in my csproj, did not give more error
<Target Name="RemoveGoogleServicesJsonStampFiles" BeforeTargets="BeforeBuild">
<Delete Files="$(IntermediateOutputPath)\ProcessGoogleServicesJson.stamp" />
</Target>
This seems to have resolved.