- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 ionic 应用程序,在我的绝大多数客户中都很稳定。
但我有一个客户有一台三星 S9,当他打开应用程序时,立即打开一条消息:
The app has stopped
java.lang.RuntimeException:
at android.view.DisplayListCanvas.throwIfCannotDraw (DisplayListCanvas.java:229)
at android.view.RecordingCanvas.drawBitmap (RecordingCanvas.java:97)
at android.graphics.drawable.BitmapDrawable.draw (BitmapDrawable.java:529)
at android.widget.ImageView.onDraw (ImageView.java:1367)
at android.view.View.draw (View.java:20338)
at android.view.View.updateDisplayListIfDirty (View.java:19283)
at android.view.View.draw (View.java:20061)
at android.view.ViewGroup.drawChild (ViewGroup.java:4421)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
at android.view.View.updateDisplayListIfDirty (View.java:19274)
at android.view.View.draw (View.java:20061)
at android.view.ViewGroup.drawChild (ViewGroup.java:4421)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
at android.view.View.updateDisplayListIfDirty (View.java:19274)
at android.view.View.draw (View.java:20061)
at android.view.ViewGroup.drawChild (ViewGroup.java:4421)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
at android.view.View.draw (View.java:20341)
at com.android.internal.policy.DecorView.draw (DecorView.java:979)
at android.view.View.updateDisplayListIfDirty (View.java:19283)
at android.view.ThreadedRenderer.updateViewTreeDisplayList (ThreadedRenderer.java:686)
at android.view.ThreadedRenderer.updateRootDisplayList (ThreadedRenderer.java:692)
at android.view.ThreadedRenderer.draw (ThreadedRenderer.java:800)
at android.view.ViewRootImpl.draw (ViewRootImpl.java:3488)
at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:3275)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2810)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1779)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7810)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:911)
at android.view.Choreographer.doCallbacks (Choreographer.java:723)
at android.view.Choreographer.doFrame (Choreographer.java:658)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:897)
at android.os.Handler.handleCallback (Handler.java:789)
at android.os.Handler.dispatchMessage (Handler.java:98)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6938)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)
cordova-plugin-advanced-http 1.11.1 “Advanced HTTP plugin”
cordova-plugin-app-event 1.2.1 “Application Events”
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-device 2.0.2 “Device”
cordova-plugin-dialogs 2.0.1 “Notification”
cordova-plugin-file 6.0.1 “File”
cordova-plugin-ionic-keyboard 2.1.2 “cordova-plugin-ionic-keyboard”
cordova-plugin-ionic-webview 1.2.1 “cordova-plugin-ionic-webview”
cordova-plugin-local-notification 0.9.0-beta.2 “LocalNotification”
cordova-plugin-local-notifications-db 0.8.4 “LocalNotification”
cordova-plugin-sim 1.3.3 “SIM”
cordova-plugin-splashscreen 5.0.2 “Splashscreen”
cordova-plugin-whitelist 1.3.3 “Whitelist”
cordova-sqlite-storage 2.4.0 “Cordova sqlite storage plugin”
cordova-support-google-services 1.1.0 “cordova-support-google-services”
phonegap-plugin-multidex 1.0.0 “Multidex”
phonegap-plugin-push 2.2.3 “PushPlugin”
<?xml version='1.0' encoding='utf-8'?>
<widget id="japp.jcontrole" version="0.1.6" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>xApp</name>
<description>Controle de perguntas/respostas auxiliar do sistema xx.</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
<content src="index.html" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<content src="index.html" />
<allow-navigation href="*" />
<allow-intent href="*" />
<access origin="*" subdomains="true" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<preference name="ScrollEnabled" value="false" />
<preference name="SplashScreenSpinnerColor" value="white" />
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<preference name="windows-target-version" value="10.0" />
<preference name="windows-phone-target-version" value="10.0" />
<preference name="android-minSdkVersion" value="19" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="FadeSplashScreenDuration" value="300" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="SplashScreenDelay" value="0" />
<preference name="ShowSplashScreen" value="true" />
<preference name="FadeSplashScreen" value="true" />
<preference name="loadUrlTimeoutValue" value="700000" />
<platform name="android">
<icon qualifier="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
<icon qualifier="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
<icon qualifier="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
<icon qualifier="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
<icon qualifier="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
<icon qualifier="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
<splash qualifier="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
<splash qualifier="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
<splash qualifier="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
<splash qualifier="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
<splash qualifier="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
<splash qualifier="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
<splash qualifier="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
<splash qualifier="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
<splash qualifier="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
<splash qualifier="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
<splash qualifier="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
<splash qualifier="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
</platform>
<platform name="ios">
<icon height="57" platform="ios" src="resources/icons/ios/icon.png" width="57" />
<icon height="114" platform="ios" src="resources/icons/ios/icon@2x.png" width="114" />
<icon height="40" platform="ios" src="resources/icons/ios/icon-40.png" width="40" />
<icon height="80" platform="ios" src="resources/icons/ios/icon-40@2x.png" width="80" />
<icon height="50" platform="ios" src="resources/icons/ios/icon-50.png" width="50" />
<icon height="100" platform="ios" src="resources/icons/ios/icon-50@2x.png" width="100" />
<icon height="60" platform="ios" src="resources/icons/ios/icon-60.png" width="60" />
<icon height="120" platform="ios" src="resources/icons/ios/icon-60@2x.png" width="120" />
<icon height="180" platform="ios" src="resources/icons/ios/icon-60@3x.png" width="180" />
<icon height="72" platform="ios" src="resources/icons/ios/icon-72.png" width="72" />
<icon height="144" platform="ios" src="resources/icons/ios/icon-72@2x.png" width="144" />
<icon height="76" platform="ios" src="resources/icons/ios/icon-76.png" width="76" />
<icon height="152" platform="ios" src="resources/icons/ios/icon-76@2x.png" width="152" />
<icon height="29" platform="ios" src="resources/icons/ios/icon-small.png" width="29" />
<icon height="58" platform="ios" src="resources/icons/ios/icon-small@2x.png" width="58" />
<icon height="87" platform="ios" src="resources/icons/ios/icon-small@3x.png" width="87" />
<splash height="1136" platform="ios" src="resources/screens/ios/Default-568h@2x~iphone.png" width="640" />
<splash height="1334" platform="ios" src="resources/screens/ios/Default-667h.png" width="750" />
<splash height="2208" platform="ios" src="resources/screens/ios/Default-736h.png" width="1242" />
<splash height="1242" platform="ios" src="resources/screens/ios/Default-Landscape-736h.png" width="2208" />
<splash height="1536" platform="ios" src="resources/screens/ios/Default-Landscape@2x~ipad.png" width="2048" />
<splash height="768" platform="ios" src="resources/screens/ios/Default-Landscape~ipad.png" width="1024" />
<splash height="2048" platform="ios" src="resources/screens/ios/Default-Portrait@2x~ipad.png" width="1536" />
<splash height="1024" platform="ios" src="resources/screens/ios/Default-Portrait~ipad.png" width="768" />
<splash height="960" platform="ios" src="resources/screens/ios/Default@2x~iphone.png" width="640" />
<splash height="480" platform="ios" src="resources/screens/ios/Default~iphone.png" width="320" />
</platform>
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
<plugin name="cordova-plugin-device" spec="2.0.2" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
<allow-navigation href="http://192.168.0.15:8100" />
<allow-navigation href="http://192.168.0.15:8101" />
<allow-navigation href="http://192.168.0.15:8102" />
<allow-navigation href="http://10.0.7.80:8100" />
<plugin name="cordova-plugin-advanced-http" spec="^1.11.1" />
<plugin name="cordova-plugin-ionic-webview" spec="^1.2.1" />
<allow-navigation href="http://192.168.0.15:8103" />
<allow-navigation href="http://192.168.0.15:8106" />
<plugin name="cordova-sqlite-storage" spec="^2.3.3" />
<plugin name="cordova-plugin-dialogs" spec="^2.0.1" />
<plugin name="cordova-plugin-app-version" spec="^0.1.9" />
<plugin name="cordova-plugin-sim" spec="^1.3.3" />
<plugin name="cordova-plugin-local-notification" spec="^0.9.0-beta.2" />
<plugin name="phonegap-plugin-push" spec="^2.2.3">
<variable name="ANDROID_SUPPORT_V13_VERSION" value="27.+" />
<variable name="FCM_VERSION" value="11.6.2" />
</plugin>
<plugin name="cordova-plugin-background-mode" spec="^0.7.2" />
<engine name="browser" spec="5.0.3" />
<engine name="ios" spec="4.5.5" />
<engine name="android" spec="7.1.0" />
</widget>
Recently i added a background mode with local notifications in one component:
ngOnInit(): void {
this.backgroundMode.setDefaults({silent:true});
this.backgroundMode.enable();
this.backgroundMode.on("activate").subscribe(()=>{
this.backgroundMode.disableWebViewOptimizations()
clearInterval(this.intervalId);
this.intervalId = setInterval(() => {this.consultaNotificacoes()}, 100000);
for (var i = 0; i < res.data.notificar.perguntas.length; i++) {
this.localNotifications.schedule({
id: i+1,
priority: 2,
text: 'Produto: ' + res.data.notificar.perguntas[i].produto.substring(0, 20) + '...',
title: 'Nova pergunta, conta: ' + res.data.notificar.perguntas[i].conta,
smallIcon: 'res://notification',
});
}
}
最佳答案
我在 config.xml 中修复,我的 Assets 是错误的。
我愿意:
<platform name="android">
<icon qualifier="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
<icon qualifier="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
<icon qualifier="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
<icon qualifier="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
<icon qualifier="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
<icon qualifier="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
<splash qualifier="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
<splash qualifier="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
<splash qualifier="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
<splash qualifier="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
<splash qualifier="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
<splash qualifier="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
<splash qualifier="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
<splash qualifier="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
<splash qualifier="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
<splash qualifier="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
<splash qualifier="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
<splash qualifier="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
</platform>
<platform name="ios">
<icon height="57" platform="ios" src="resources/ios/icon/icon.png" width="57" />
<icon height="114" platform="ios" src="resources/ios/icon/icon@2x.png" width="114" />
<icon height="40" platform="ios" src="resources/ios/icon/icon-40.png" width="40" />
<icon height="80" platform="ios" src="resources/ios/icon/icon-40@2x.png" width="80" />
<icon height="50" platform="ios" src="resources/ios/icon/icon-50.png" width="50" />
<icon height="100" platform="ios" src="resources/ios/icon/icon-50@2x.png" width="100" />
<icon height="60" platform="ios" src="resources/ios/icon/icon-60.png" width="60" />
<icon height="120" platform="ios" src="resources/ios/icon/icon-60@2x.png" width="120" />
<icon height="180" platform="ios" src="resources/ios/icon/icon-60@3x.png" width="180" />
<icon height="72" platform="ios" src="resources/ios/icon/icon-72.png" width="72" />
<icon height="144" platform="ios" src="resources/ios/icon/icon-72@2x.png" width="144" />
<icon height="76" platform="ios" src="resources/ios/icon/icon-76.png" width="76" />
<icon height="152" platform="ios" src="resources/ios/icon/icon-76@2x.png" width="152" />
<icon height="29" platform="ios" src="resources/ios/icon/icon-small.png" width="29" />
<icon height="58" platform="ios" src="resources/ios/icon/icon-small@2x.png" width="58" />
<icon height="87" platform="ios" src="resources/ios/icon/icon-small@3x.png" width="87" />
<splash height="1136" platform="ios" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
<splash height="1334" platform="ios" src="resources/ios/splash/Default-667h.png" width="750" />
<splash height="2208" platform="ios" src="resources/ios/splash/Default-736h.png" width="1242" />
<splash height="1242" platform="ios" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
<splash height="1536" platform="ios" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
<splash height="768" platform="ios" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
<splash height="2048" platform="ios" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
<splash height="1024" platform="ios" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
<splash height="960" platform="ios" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
<splash height="480" platform="ios" src="resources/ios/splash/Default~iphone.png" width="320" />
</platform>
关于cordova - 在Android中打开后应用程序立即崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53108924/
我最近在/ drawable中添加了一些.gifs,以便可以将它们与按钮一起使用。这个工作正常(没有错误)。现在,当我重建/运行我的应用程序时,出现以下错误: Error: Gradle: Execu
Android 中有返回内部存储数据路径的方法吗? 我有 2 部 Android 智能手机(Samsung s2 和 s7 edge),我在其中安装了一个应用程序。我想使用位于这条路径中的 sqlit
这个问题在这里已经有了答案: What's the difference between "?android:" and "@android:" in an android layout xml f
我只想知道 android 开发手机、android 普通手机和 android root 手机之间的实际区别。 我们不能从实体店或除 android marketplace 以外的其他地方购买开发手
自Gradle更新以来,我正在努力使这个项目达到标准。这是一个团队项目,它使用的是android-apt插件。我已经进行了必要的语法更改(编译->实现和apt->注释处理器),但是编译器仍在告诉我存在
我是android和kotlin的新手,所以请原谅要解决的一个非常简单的问题! 我已经使用导航体系结构组件创建了一个基本应用程序,使用了底部的导航栏和三个导航选项。每个导航选项都指向一个专用片段,该片
我目前正在使用 Facebook official SDK for Android . 我现在正在使用高级示例应用程序,但我不知道如何让它获取应用程序墙/流/状态而不是登录的用户。 这可能吗?在那种情
我在下载文件时遇到问题, 我可以在模拟器中下载文件,但无法在手机上使用。我已经定义了上网和写入 SD 卡的权限。 我在服务器上有一个 doc 文件,如果用户单击下载。它下载文件。这在模拟器中工作正常但
这个问题在这里已经有了答案: What is the difference between gravity and layout_gravity in Android? (22 个答案) 关闭 9
任何人都可以告诉我什么是 android 缓存和应用程序缓存,因为当我们谈论缓存清理应用程序时,它的作用是,缓存清理概念是清理应用程序缓存还是像内存管理一样主存储、RAM、缓存是不同的并且据我所知,缓
假设应用程序 Foo 和 Eggs 在同一台 Android 设备上。任一应用程序都可以获取设备上所有应用程序的列表。一个应用程序是否有可能知道另一个应用程序是否已经运行以及运行了多长时间? 最佳答案
我有点困惑,我只看到了从 android 到 pc 或者从 android 到 pc 的例子。我需要制作一个从两部手机 (android) 连接的 android 应用程序进行视频聊天。我在想,我知道
用于使用 Android 以编程方式锁定屏幕。我从 Stackoverflow 之前关于此的问题中得到了一些好主意,并且我做得很好,但是当我运行该代码时,没有异常和错误。而且,屏幕没有锁定。请在这段代
文档说: android:layout_alignParentStart If true, makes the start edge of this view match the start edge
我不知道这两个属性和高度之间的区别。 以一个TextView为例,如果我将它的layout_width设置为wrap_content,并将它的width设置为50 dip,会发生什么情况? 最佳答案
这两个属性有什么关系?如果我有 android:noHistory="true",那么有 android:finishOnTaskLaunch="true" 有什么意义吗? 最佳答案 假设您的应用中有
我是新手,正在尝试理解以下 XML 代码: 查看 developer.android.com 上的文档,它说“starStyle”是 R.attr 中的常量, public static final
在下面的代码中,为什么当我设置时单选按钮的外观会发生变化 android:layout_width="fill_parent" 和 android:width="fill_parent" 我说的是
很难说出这里要问什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或夸夸其谈,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开,visit the help center . 关闭 9
假设我有一个函数 fun myFunction(name:String, email:String){},当我调用这个函数时 myFunction('Ali', 'ali@test.com ') 如何
我是一名优秀的程序员,十分优秀!