Example #1
0
        static public void CompleteStartup(Context context, Settings settings)
        {
            if (Config.GcmNotificationKey != null)
            {
                if (!GCMRegistrationService.IsAvailable(context))
                {
                    settings.enabled = false;
                    settings.commit();
                    return;
                }
                GCMRegistrationService.Start(context);
            }

            if (settings.enabled)
            {
                LifeSharpService.Start(context);
            }
        }
Example #2
0
 public override void OnTokenRefresh()
 {
     Log.Info(LogTag, "GCM Requested a token refresh");
     GCMRegistrationService.Start(this);
 }