From b768c8b28af45cdaaa61074e0dddd480dce4d2d0 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 10 Oct 2017 11:49:56 -0400 Subject: [PATCH] proper push service --- src/Android/MainApplication.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Android/MainApplication.cs b/src/Android/MainApplication.cs index 287092c99..0f213ba0c 100644 --- a/src/Android/MainApplication.cs +++ b/src/Android/MainApplication.cs @@ -151,11 +151,11 @@ namespace Bit.Android public static void StartPushService() { - AppContext.StartService(new Intent(AppContext, typeof(AndroidPushNotificationService))); + AppContext.StartService(new Intent(AppContext, typeof(AndroidPushService))); if(Build.VERSION.SdkInt >= BuildVersionCodes.Kitkat) { PendingIntent pintent = PendingIntent.GetService(AppContext, 0, new Intent(AppContext, - typeof(AndroidPushNotificationService)), 0); + typeof(AndroidPushService)), 0); AlarmManager alarm = (AlarmManager)AppContext.GetSystemService(AlarmService); alarm.Cancel(pintent); } @@ -163,11 +163,11 @@ namespace Bit.Android public static void StopPushService() { - AppContext.StopService(new Intent(AppContext, typeof(AndroidPushNotificationService))); + AppContext.StopService(new Intent(AppContext, typeof(AndroidPushService))); if(Build.VERSION.SdkInt >= BuildVersionCodes.Kitkat) { PendingIntent pintent = PendingIntent.GetService(AppContext, 0, new Intent(AppContext, - typeof(AndroidPushNotificationService)), 0); + typeof(AndroidPushService)), 0); AlarmManager alarm = (AlarmManager)AppContext.GetSystemService(AlarmService); alarm.Cancel(pintent); }