Example #1
0
 /// <summary>
 /// Method which registers a new background task for the app.
 /// Registers a new backgroud task which will be triggered every 15 minutes.
 /// </summary>
 public static void Register()
 {
     Unregister();
     try
     {
         BackgroundTaskHelper.Register(TASK_NAME, ENTRY_POINT, new TimeTrigger(15, false), true, true);
     }
     catch (Exception ex)
     {
         Analytics.TrackEvent(ex.Message, new Dictionary <string, string> {
             { "exception", ex.ToString() }
         });
     }
 }