private void UnregisterDevice()
        {
            string device_uuid = this.getDeviceUUID();

            if (device_uuid == null)
            {
                return;                      //emulators
            }
            //loop over blogs and retrieves the list of .com accounts added to the app
            List <Blog> blogs = DataService.Current.Blogs.ToList();

            foreach (Blog currentBlog in blogs)
            {
                if (currentBlog.isWPcom() || currentBlog.hasJetpack())
                {
                    if (currentBlog.isWPcom())
                    {
                        // do something with entry.Value or entry.Key
                        UnregisterPushNotificationToken rpc = new UnregisterPushNotificationToken(pushNotificationURL, currentBlog.Username, currentBlog.Password, device_uuid);
                        rpc.ExecuteAsync();
                        return;
                    }
                    else if (currentBlog.DotcomUsername != null && currentBlog.DotcomPassword != null)
                    {
                        // do something with entry.Value or entry.Key
                        UnregisterPushNotificationToken rpc = new UnregisterPushNotificationToken(pushNotificationURL, currentBlog.DotcomUsername, currentBlog.DotcomPassword, device_uuid);
                        rpc.ExecuteAsync();
                        return;
                    }
                }
            }
        }
        private void UnregisterDevice()
        {
            string device_uuid = this.getDeviceUUID();
            if (device_uuid == null) return; //emulators

            //loop over blogs and retrieves the list of .com accounts added to the app
            List<Blog> blogs = DataService.Current.Blogs.ToList();
            foreach (Blog currentBlog in blogs)
            {
                if (currentBlog.isWPcom() || currentBlog.hasJetpack())
                {
                    if (currentBlog.isWPcom())
                    {
                        // do something with entry.Value or entry.Key
                        UnregisterPushNotificationToken rpc = new UnregisterPushNotificationToken(pushNotificationURL, currentBlog.Username, currentBlog.Password, device_uuid);
                        rpc.ExecuteAsync();
                        return;
                    }
                    else if (currentBlog.DotcomUsername != null && currentBlog.DotcomPassword != null)
                    {
                        // do something with entry.Value or entry.Key
                        UnregisterPushNotificationToken rpc = new UnregisterPushNotificationToken(pushNotificationURL, currentBlog.DotcomUsername, currentBlog.DotcomPassword, device_uuid);
                        rpc.ExecuteAsync();
                        return;
                    }
                }
            }
        }