ChatterBox.Client.Win8dot1.App.RegisterForPush C# (CSharp) Method

RegisterForPush() private static method

private static RegisterForPush ( bool registerAgain = true ) : System.Threading.Tasks.Task
registerAgain bool
return System.Threading.Tasks.Task
        private static async System.Threading.Tasks.Task RegisterForPush(bool registerAgain = true)
        {
            PushNotificationHelper.RegisterPushNotificationChannel();

            var helper = new TaskHelper();
            var pushNotificationTask = await helper.RegisterTask(nameof(PushNotificationTask),
                                                                 typeof(PushNotificationTask).FullName,
                                                                 new PushNotificationTrigger(),
                                                                 registerAgain);                                                                 
            if (pushNotificationTask == null)
            {
                Debug.WriteLine("Push notification background task is not started");
            }
        }