protected internal override void onHandleIntent(Intent intent)
 {
     if (SinchHelpers.isSinchPushIntent(intent))
     {
         mIntent = intent;
         connectToService();
     }
     else
     {
         GcmBroadcastReceiver.completeWakefulIntent(intent);
     }
 }
        public override void onServiceConnected(ComponentName componentName, IBinder iBinder)
        {
            if (mIntent == null)
            {
                return;
            }

            if (SinchHelpers.isSinchPushIntent(mIntent))
            {
                SinchService.SinchServiceInterface sinchService = (SinchService.SinchServiceInterface)iBinder;
                if (sinchService != null)
                {
                    NotificationResult result = sinchService.relayRemotePushNotificationPayload(mIntent);
                    // handle result, e.g. show a notification or similar
                }
            }

            GcmBroadcastReceiver.completeWakefulIntent(mIntent);
            mIntent = null;
        }