- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
在 iOS 12.2 上,我的应用程序在启动后立即终止,并在 xcode 中显示此消息:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key _alwaysRunsAtForegroundPriority.'
任何人都可以为我指出正确的方向吗?我看到之前有一些关于此的警告:
该帖子的答案是它是来自 webview 的安全警告,可以忽略。但是当它让我的应用程序崩溃时,它真的不能再被忽略了:)
在此先感谢您的帮助。
拉斯
2019 年 2 月 2 日更新:看起来是 cordova-plugin-background-mode 导致了错误。但我必须承认我不知道如何解决这个问题。当我从我的项目中删除该插件时,它会起作用。但是我需要那个插件,或者至少需要后台模式功能,所以我需要以某种方式解决这个问题。
2019 年 2 月 5 日更新:@coderroggie:我还有 2.3.2 版的 cordova-plugin-ionic-webview 插件。奇怪的是,它仅在删除 cordova-plugin-background-mode(版本 0.7.2)时才对我有用
如果可以为您提供任何有用的信息,我会发布我的 ionic 信息。
Ionic:
ionic (Ionic CLI) : 4.9.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.2.1Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : ios 4.5.5 Cordova Plugins : cordova-plugin-ionic 5.2.9, cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.2, (and 22 other plugins)
System:
ios-deploy : 1.9.2 NodeJS : v8.11.1 (/usr/local/bin/node)
npm : 6.4.1 OS : macOS Mojave Xcode : Xcode 10.1 Build version 10B61
2 月 2 日(再次)更新
我的插件:
cordova-android-firebase-gradle-release 1.0.2 "cordova-android-firebase-gradle-release"
cordova-android-play-services-gradle-release 1.4.3 "cordova-android-play-services-gradle-release"
cordova-android-support-gradle-release 1.4.4 "cordova-android-support-gradle-release"
cordova-plugin-app-version 0.1.9 “AppVersion”
cordova-plugin-background-mode 0.7.2 "BackgroundMode"
cordova-plugin-badge 0.8.7“角标(Badge)”
cordova-plugin-camera 4.0.3 “相机”
cordova-plugin-console 1.1.0 “控制台”
cordova-plugin-customurlscheme 4.3.0 “自定义 URL 方案”
cordova-plugin-device 2.0.2“设备”
cordova-plugin-file 6.0.1 "file"
cordova-plugin-file-transfer 1.7.1 “文件传输”
cordova-plugin-geolocation 4.0.1 “地理定位”
cordova-plugin-ionic 5.2.9 “cordova-plugin-ionic”
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.3.2 "cordova-plugin-ionic-webview"
cordova-plugin-local-notification 0.9.0-beta.2 “LocalNotification”
cordova-plugin-mauron85-background-geolocation 3.0.0-alpha.49“CDVBackgroundGeolocation”
cordova-plugin-network-information 2.0.1 “网络信息”
cordova-plugin-safariviewcontroller 1.5.4 “SafariViewController”
cordova-plugin-splashscreen 5.0.2“启动画面”
cordova-plugin-vibration 3.1.0 “振动”
cordova-plugin-whitelist 1.3.3 “白名单”
cordova-support-google-services 1.1.0 "cordova-support-google-services"
cordova.plugins.diagnostic 4.0.7 “诊断”
ionic-plugin-keyboard 2.2.1 “键盘”
phonegap-plugin-push 2.1.3 “PushPlugin”
最佳答案
在插件中,底部有一个“setValue”,可以使应用程序崩溃。得到了 12.2 的版本。尝试
ionic cordova plugin add https://github.com/iowayankee/cordova-plugin-background-mode.git
包.json
"cordova-plugin-background-mode": "git+https://github.com/iowayankee/cordova-plugin-background-mode.git",
配置文件
<plugin name="cordova-plugin-background-mode" spec="git+https://github.com/iowayankee/cordova-plugin-background-mode.git" />
希望至少能帮助某人进行构建
关于ios - 由于 '_alwaysRunsAtForegroundPriority',Ionic 应用程序在 iOS 12.2 上崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54474910/
我想在聚焦时使用 ion-input 更改 ion-item 内的 ion-label 颜色。 我可以使用 --highlight-color-focused: yellow; 更改 ion-item
我想用 ionic 3 ion-list (或任何在 Ionic 3 中有效的东西)来显示水平列表而不是典型的垂直列表。 寻找解决方案 没有大量的 css 或难以维护的代码。
我目前使用 ionic 和我的 cordova 插件同时开发一个应用程序。我想知道如何使用文件 plugins/fetch.json 从本地文件系统更新我的插件。有什么想法吗? 最佳答案 使用 ion
当我在 ionic 项目文件夹中运行 ionic link 命令时,我收到以下错误消息 “除非您在 Ionic 项目文件夹中,否则您无法运行此命令” 我的系统信息。 Cordova CLI:6.3.1
如何注释 ion-row这样它就可以填满剩余的空间? 对于以下示例,黄色行“内容”应展开,直到占用所有剩余(绿色)空间。 Example text
我正在尝试构建一个 ionic 应用程序,但是当我运行 npm run ionic:build -–prod 时,出现以下错误: npm run ionic:build -–prod npm ERR!
我想在 ion-footer-bar 中添加两个按钮,如图片,但我的代码无法正常工作。 Button 333333333 Button
请有人澄清一下我什么时候会使用 ion-nav-view反对 ion-view ?我正在学习 AngularJS/Ionic(我对 AngularJS 有基本的了解;并且想使用 Ionic 来增强它)
关闭。这个问题是opinion-based .它目前不接受答案。 想改善这个问题吗?更新问题,以便可以通过 editing this post 用事实和引文回答问题. 1年前关闭。 Improve t
item-avatar 在我的项目中不起作用,它根本不显示 item-avatar 元素。 Recent Conversations
我正在使用带有属性interface="popover"的ion-select。弹出窗口在 select 下方打开,这使得弹出窗口非常小。 我发现,如果 ion-select 中有 10 个或更多项目
我创建了一个带有电容器的新项目 ionic。我使用 ionic 选择,但我有一个新的 ionic 选择选项,带有大文本,而不是在输入中分布。 Plaga/Enfermedad Al
如何像 ionic 中的许多应用程序一样滑动切换段?我在 ionic 官方文档中找不到任何 api。我只能找到this有用的线程。 但它似乎并不完美。有更好的解决办法吗? ionic 信息: Cord
我正在开发一个登录表单,所以在我的 中我有一个 (用作登录表单的容器)我想垂直居中。我用 css flexbox 和其他 css 技巧尝试了不同的方法,但对我没有任何作用!该卡片保留在页面顶部。你
我想在 ionic 选择(组合框)更改时隐藏和显示文本框 例如我有: ionic 选择中的 1 和 2如果我选择 1 文本框将隐藏,如果我选择 2 文本框将出现 这是我当前的代码: .ts onCha
我尝试在 ionic 4 中使用 ion-button 实现一个按钮,但没有样式输出,问题出在哪里,求助。 最佳答案 请使用以下代码 这里是 ionic v4 按钮的文档。 https://beta
我有一个在 ionic serve 中运行良好的应用程序。我现在正在尝试创建一个构建——这通常有效,但今天我遇到了问题。 ionic package build ios --profile devel
我正在使用 Ionic 2,在我的应用程序中我正在创建一个表单,如果出现验证错误,信息图标将出现在相关输入字段的右侧。 HTML如下,
我正在与一个远程团队一起开发 Ionic 1 应用程序,最近我们的版本彼此不喜欢。我想知道我是否也一直在从事 Ionic 2 项目,无论出于何种原因,我的 CLI “认为”这些应用程序也是 Ionic
我需要禁用默认 ion-ripple-effect在“ ionic 按钮”中。 我无法禁用 pointer-events因为我需要它。 PS:我引用了以下帖子,但找不到适合 Ionic 4
我是一名优秀的程序员,十分优秀!