首页 \ 问答 \ Phonegap应用程序抛出运行Android ICS 4.0的错误,但在Android 2.3及更低版本上运行正常(Phonegap application throws error running Android ICS 4.0, but works fine on Android 2.3 and below)

Phonegap应用程序抛出运行Android ICS 4.0的错误,但在Android 2.3及更低版本上运行正常(Phonegap application throws error running Android ICS 4.0, but works fine on Android 2.3 and below)

我在Android上运行PhoneGap移动应用程序时遇到问题。 我目前正在使用PhoneGap 1.3.0版。 它在Android 2.3和所有较低版本的Android上都能很好地运行。 但是,当我尝试在Android 4.0上运行它 - 冰淇淋三明治时会抛出此对话框错误:

Application error - A network error occurred. (file:///android_asset/www/index.html#)

在logcat中没有太多相关信息,只有这样:

chromium - Unknown chromium error: -6

任何人都知道为什么我的应用程序在除最新的4.0 ICS之外的所有Android版本上都能正常工作? 感谢您提前提供的任何帮助。


I have a problem with PhoneGap mobile app running on Android. I am currently using PhoneGap version 1.3.0. And it works perfectly on Android 2.3 and all the lower versions of Android. However, when I try to run it on Android 4.0 - Ice cream sandwich it throws this dialog error:

Application error - A network error occurred. (file:///android_asset/www/index.html#)

In the logcat there is not much relevant info, only this:

chromium - Unknown chromium error: -6

Anybody has any idea why my app works fine on all Android versions except the newest 4.0 ICS ? Thank you for any help in advance.


原文:https://stackoverflow.com/questions/8816235
更新时间:2020-01-15 23:47

最满意答案

需要设置的权限实际上在共享服务提供程序中找到。

  1. 导航到中央管理员
  2. 导航到共享服务提供商
  3. 在“ 用户配置文件和我的网站”下,导航到“个性化服务”权限
  4. 如果该帐户尚不存在,请添加运行您的网站App Domain的帐户。
  5. 授予该用户管理用户配置文件权限。

我注意到您正在网络服务帐户下运行应用程序池。 我在我的网站上实现了相同的功能; 但是,应用程序池是在Windows帐户下托管的。 但是,我不确定为什么会有所作为。


The permission that needs set is actually found in the Shared Service Provider.

  1. Navigate to Central Admin
  2. Navigate to the Shared Service Provider
  3. Under User Profiles and My Sites navigate to Personalization services permissions .
  4. If the account doesn't already exist, add the account for which your sites App Domain is running under.
  5. Grant that user Manage user profiles permission.

I notice that you're running the application pool under the Network Service account. I implemented an identical feature on my site; however, the application pool was hosted under a Windows account. I'm not sure why this would make a difference, however.

相关问答

更多
  • 而不是单独的SQL DB。 获取用户配置文件详细信息并将其存储在您站点的SharePoint列表中。 在该列表上执行搜索,以便提高性能。 要在gridview中显示,如果SharePoint列表中的数据,您可以通过多种方式执行此操作。 希望能帮助到你。 Instead of going for seperate SQL DB. Get the user profile details and store it in SharePoint list on your site. Perform the sear ...
  • 选择thumbnailPhoto然后单击“导入”后会发生这种情况吗? 或者在显示同步属性映射然后单击“确定”后? 如果映射后没有任何图像已经通过,则尝试运行此脚本: $mySitesUrl = “http://mySiteURL” $mySitesHost = Get-SPSite –Identity $mySitesUrl Update-SPProfilePhotoStore –MySiteHostLocation $mySitesHost –CreateThumbnailsForImportedPhot ...
  • IIRC,您可以在单击一次应用程序中引用All Users Application Data文件夹。 您所做的是将默认配置分发到每个应用程序的正常应用程序数据文件夹,但从不从该文件中读取配置信息。 相反,在应用程序启动时,您在所有用户应用程序数据文件夹中查找配置文件,如果找不到,则在那里复制默认文件。 然后从该位置读取您的配置。 Based on this SO post I did this: FileSecurity fileSecurity = File.GetAccessControl(fil ...
  • 难道这也与管理组的权限有关,而不是与使用Web服务的权限有关吗? 我知道我之前通过用户界面遇到了类似的情况,结果发现我没有权限编辑该组的成员资格。 我相信在某些情况下您有权编辑群组的成员资格: 您是该组的创建者 组(或网站集管理员)的创建者将您指定为该组的所有者 该组已配置为允许所有组成员编辑其成员身份,并且您是该组的成员 您是网站集管理员 这些条件都不适合你吗? Couldn't this also have more to do with the permission to manage the gro ...
  • 我不确定是否有任何此类功能。 我建议你:1)查询Active Directory以获取部门字段的所有值(如果从AD检索用户配置文件)。 2)编写直接查询共享点数据库的自定义Web服务(不幸的是,不推荐查询sharepoint数据库,因此您可能找不到任何文档)。 3)缓存部门列表并尝试使用UserProfileManager类的GetChanges()方法获取更改并将其保存到缓存(或在一段时间后完全更新缓存)。 I'm not sure that there is any such functionality ...
  • 需要设置的权限实际上在共享服务提供程序中找到。 导航到中央管理员 导航到共享服务提供商 在“ 用户配置文件和我的网站”下,导航到“个性化服务”权限 如果该帐户尚不存在,请添加运行您的网站App Domain的帐户。 授予该用户管理用户配置文件权限。 我注意到您正在网络服务帐户下运行应用程序池。 我在我的网站上实现了相同的功能; 但是,应用程序池是在Windows帐户下托管的。 但是,我不确定为什么会有所作为。 The permission that needs set is actually found i ...
  • 我们最终将我们添加到用户配置文件的自定义属性提升为托管属性。 另外,似乎我们可以在托管属性上进行通配符搜索,因此我们可以像“CustomProperty:*,2,*”一样进行人员搜索,以便它将返回其用户配置文件的自定义属性中编号为2的所有用户配置文件 有趣的是,通配符只在最终名称上为OOTB属性起作用,所以我们不能做类似名字的事情: 哦,并期望它会返回John Doe的配置文件但是我们当然可以做到这一点 - 名字:joh *并且返回所有第一个名字以Joh开头(包括John Doe) 但似乎通配符在自定义托管 ...
  • 不幸的是,我不知道有哪个商业解决方案可以完成这项工作,但我可以考虑两种定制解决方案。 写一个自定义的Web部分迭代所有用户配置文件,缓存所需的数据,如姓名和电话号码等,并将这些信息呈现在表格中。 由于用户数据如姓名和电话号码不会经常更改,缓存信息一天应该没问题。 编写一个计时器作业,定期从用户配置文件中提取有关用户的信息。 计时器作业将信息写入联系人列表。 列表的优点是您可以进行排序和过滤。 缺点是,你在多个地方有相同的信息(用户配置文件,联系人列表)。 但是你可以排除列表表单搜索。 It looks li ...
  • Rajesh.Sitaraman在论坛上https://social.technet.microsoft.com/Forums/en-US/512be815-c8dc-4669-a3d2-d3d2f731779c/sharepoint-2013-addin-jsom-how-to-get-users- profiles-from-specific-domain-?forum = sharepointdevelopment&prof = required建议在CA中创建或更改结果源。 我拒绝了这个变种并在应用 ...
  • 最后,我改变了主意使用UserPrincipal来获取用户信息: PrincipalContext _principalcontext = GetPrincipalContext(); UserPrincipal _user = UserPrincipal.FindByIdentity(_principalcontext, IdentityType.SamAccountName, UID); if (_user != null) { DirectoryEnt ...

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)