An hundled exception occurred when i turn on debug

pnet1pnet1 USMember ✭✭✭

With these lines, i get an error.

try
            {
                base.OnCreate();

                //If debug you should reset the token each time.
#if DEBUG
                FirebasePushNotificationManager.Initialize(this, true);
#else
                FirebasePushNotificationManager.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;
            }
        }

but if i comment this line

FirebasePushNotificationManager.Initialize(this, true);

then work. How can i solve this issue?

Tagged:
Sign In or Register to comment.