流星卡在建筑物上为web.browser(Windows)

时间:2017-09-09 05:58:40

标签: javascript node.js meteor

enter image description here

我的队友上传了一个流星项目,他用mac创建了它。我克隆了这个项目并尝试先进行npm install,然后键入meteor。但是,该项目一直停留在Building for Web浏览器中。我在网上搜索了很多解决方案,但仍然无法解决问题。我正在使用Windows计算机,显然Windows用户面临的问题。

请尝试从https://github.com/sohskd/meteorProject克隆此项目,并按照自述文件中的说明查看您是否遇到与我相同的问题。任何解决这个问题的建议都将不胜感激。感谢

1 个答案:

答案 0 :(得分:0)

试试这个:

        private bool HandlAndroidRuntimePermissions(Intent intent)
        {
            const int toastTimeout = 5;
            const string permissionName = "File Drop";

            try
            {
                PermissionStatus status;
                using (var checkPermissionStatusAsync = CrossPermissions.Current.CheckPermissionStatusAsync(Permission.Storage))
                {
                    status = checkPermissionStatusAsync.Result;
                }

                if (status != PermissionStatus.Granted)
                {
                    using (var shouldShowRequestPermissionRationaleAsync = CrossPermissions.Current.ShouldShowRequestPermissionRationaleAsync(Permission.Storage))
                    {
                        if (shouldShowRequestPermissionRationaleAsync.Result)
                        {
                            UserDialogs.Instance.Toast(
                                string.Format(Core.Resources.Resource.DocumentPickerModalViewModel_AndroidPermissionWrapper_RequestPermissionRationale, Permission.Storage, permissionName),
                                TimeSpan.FromSeconds (toastTimeout));
                        }
                    }

                    using (var requestPermissionsAsync = CrossPermissions.Current.RequestPermissionsAsync(Permission.Storage))
                    {
                        requestPermissionsAsync.ContinueWith(task =>
                        {
                            var permissionStatuses = task.Result;
                            status = permissionStatuses[Permission.Storage];
                            if (status == PermissionStatus.Granted)
                            {
                                CopyDocumentFromDeviceToMyLibrary(intent);
                            }
                            UserDialogs.Instance.Toast(string.Format(Core.Resources.Resource.DocumentPickerModalViewModel_AndroidPermissionWrapper_PermissionNotGrant, Permission.Storage, permissionName),
                                TimeSpan.FromSeconds (toastTimeout));
                        });
                    }
                    return true;
                }
            }
            catch (Exception)
            {
                UserDialogs.Instance.Toast(string.Format(Core.Resources.Resource.DocumentPickerModalViewModel_AndroidPermissionWrapper_ErrorOccured, Permission.Storage),
                    TimeSpan.FromSeconds (toastTimeout));
                return true;
            }

            return false;
        }