Whenever I connect debug mode, it gives me an error of An hundled exception occurred

1

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.

    
asked by anonymous 30.10.2017 / 12:30

0 answers