Esempio n. 1
0
        public override void OnMessageReceived(string from, Android.OS.Bundle data)
        {
            var message = data.GetString("message");

            Log.Debug(TAG, "From: " + from);
            Log.Debug(TAG, "Message: " + message);

            SendNotification(message);
        }
 protected virtual void EnsureRouteData(Android.OS.Bundle bundle)
 {
     this.ExecuteMethod("EnsureRouteData", delegate()
     {
         if (_routeData == null)
         {
             string json = bundle.GetString(AndroidAssumptions.ROUTE_KEY);
             if (!string.IsNullOrEmpty(json))
             {
                 this.RouteData = JsonConvert.DeserializeObject <TRoute>(json);
             }
         }
     });
 }
Esempio n. 3
0
 public override void OnMessageReceived(string from, Android.OS.Bundle data)
 {
     Log.Info(LogTag, "Received intent from " + from + ": " + data.GetString("message"));
     LifeSharpService.Instance.kickService <DownloadService>();
 }
Esempio n. 4
0
        public override void OnMessageReceived(string from, Android.OS.Bundle data)
        {
            var message = data.GetString("message");

            SendNotification(message);
        }