jqr
jqr
  • 发布:2017-06-19 10:18
  • 更新:2017-06-23 16:39
  • 阅读:1470

【报Bug】压缩图片闪退及无法正确获取权限状态

分类:HTML5+

1.hb已更新到最新8.8.0.201706142254直接创建移动APP“Hello H5”官方示例,用真机华为c8816。执行zip->压缩图片 直接app闪退.
2.调用plus.navigator.checkPermission 方法不管理将对的权限开启还禁用永远返回“authorized”,无法获取到正确状态值

注:以上的问题在早期的版本都是可以正常使用的。
相关问题:
http://ask.dcloud.net.cn/question/30543
http://ask.dcloud.net.cn/question/44139
http://ask.dcloud.net.cn/question/30907

运行环境
[系统版本] Android 4.3
[IDE版本] 8.8.0.201706142254

2017-06-19 10:18 负责人:无 分享
已邀请:
Android_Yanbin

Android_Yanbin - 我们不一样

1、请问你检查的是那个权限 操作手机是哪款
2、崩溃后,请将/sdcard/Android/data/io.dcloud.HBuilder/.HBuilder/logs/目录下的crash目录发给我一下

  • jqr (作者)

    1.我手上有3台手机及夜神虚拟机检测拍照“CAMERA”、定位“LOCATION”不管是对其权限开启还是禁用永远返回“authorized”。

    2.附件无法上传txt日志文件。在此直接粘贴日志内容如下:

    BOARD:C8816

    BOOTLOADER:unknown

    BRAND:Huawei

    CPU_ABI:armeabi-v7a

    CPU_ABI2:armeabi

    DEVICE:hwC8816

    DISPLAY:C8816V100R001C92B190

    FINGERPRINT:Huawei/C8816/hwC8816:4.3/HuaweiC8816/C92B190:user/ota-rel-keys,release-keys

    HARDWARE:qcom

    HOST:huawei-desktop

    ID:HuaweiC8816

    IS_DEBUGGABLE:false

    MANUFACTURER:HUAWEI

    MODEL:HUAWEI C8816

    PRODUCT:C8816

    RADIO:unknown

    SERIAL:14b968b4b2b7

    TAGS:release-keys

    TIME:1468373414000

    TYPE:user

    UNKNOWN:unknown

    USER:huawei

    java.lang.RuntimeException: java.lang.Throwable: Warning: A WebView method was called on thread 'pool-2-thread-3'. All WebView methods must be called on the UI thread. Future versions of WebView may not support use on other threads.

    at android.webkit.WebView.checkThread(WebView.java:1939)

    at android.webkit.WebView.getUrl(WebView.java:1131)

    at io.dcloud.common.adapter.ui.AdaWebview.obtainFullUrl(AdaWebview.java:369)

    at io.dcloud.feature.pdr.a$b.a(CompressImage.java:233)

    at io.dcloud.feature.pdr.a$b.a(CompressImage.java:204)

    at io.dcloud.feature.pdr.a.b(CompressImage.java:67)

    at io.dcloud.feature.pdr.a$1.run(CompressImage.java:43)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)

    at java.lang.Thread.run(Thread.java:841)

    Caused by: java.lang.Throwable: Warning: A WebView method was called on thread 'pool-2-thread-3'. All WebView methods must be called on the UI thread. Future versions of WebView may not support use on other threads.

    at android.webkit.WebView.checkThread(WebView.java:1930)

    ... 9 more

    2017-06-26 14:22

  • Android_Yanbin

    plus.navigator.checkPermission这个在哪款手机上返回结果不准确,请言明手机品牌型号,android版本

    2017-06-26 17:12

  • jqr (作者)

    华为c8816 android4.3

    2017-06-26 17:47

  • jqr (作者)

    华为 PLK-TL01H(荣耀7) android6.0

    华为c199(麦芒3s) android4.4.4

    2017-06-26 17:52

  • Android_Yanbin

    检查权限android 暂时还无法支持,只支持ios,这个页面http://www.html5plus.org/doc/zh_cn/navigator.html#plus.navigator.PermissionNames已经言明,另外压缩图片崩溃的问题已经解决,下个版本会改正。

    2017-06-27 17:29

该问题目前已经被锁定, 无法添加新回复