是什么原因造成我的web应用程序拖延一些Android设备?如何检测? [英] What is causing my web app to stall on some Android devices? How do I detect?

查看:294
本文介绍了是什么原因造成我的web应用程序拖延一些Android设备?如何检测?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建设HTML,CSS和放大器一个跨平台的移动应用程序; Javascript和它发布到Android和使用的PhoneGap的iOS作为一个包装。

I am building a cross-platform mobile app in HTML, CSS & Javascript and publishing it to Android and iOS using PhoneGap as a wrapper.

我已经发表在Android Market,并正在通过客户找出回顾了在用户设置阶段应用摊位初,随着一些用户/设备。我没有任何类型的错误处理和报告的应用程序设置,以及Android市场的崩溃报告仍然给我几百下载​​后0崩溃和半打失望的评论。

I have published in the Android Market, and am finding out through customer reviews that the app stalls early during the user setup phase, with some users/devices. I do not have any kind of error handling and reporting set up in the app, and the Android Market's crash report is still giving me 0 crashes after hundreds of downloads and half a dozen disappointed reviews.

在构建应用程序,我都没有想过错误报告。现在,它的存在,有没有实现它的简单方法?我目前正试图拦截window.onError事件,但就是正确的方法呢?

I haven't thought about error reporting while building the app. Now that it exists, is there a simple way to implement it? I'm currently trying to intercept the window.onError event, but is that the right approach?

我读过有关Acra的 HTTP://$c$c.google.com / p / ACRA / 但这似乎是Java的错误报告。如果在使用Javascript缺少的功能或不存在的对象失败,将报告阿克拉的详情为何?

I've read about Acra http://code.google.com/p/acra/ but this seems to be Java error reporting. If Javascript fails on a missing function or non-existing object, will Acra report the details of that?

编辑:
由于我的应用程序有互联网接入,无论如何,我实现了一个监听器的JavaScript'的onerror事件,它提供了错误的描述。

Since my app has internet access anyway, I implemented a listener for the javascript 'onerror' event, which provides a description of the error.

此侦听器使用科尔多瓦/ PhoneGap的检测是否存在连接:如果有,它发出的错误描述到服务器与设备一起。如果没有,它附加一个事件侦听器科尔多瓦/ PhoneGap的的'在线'事件时,器件是网上发送错误。

This listener uses Cordova/PhoneGap to detect if there is a connection: if there is, it sends the error description to the server along with the device. If there isn't, it attaches an event listener to Cordova/PhoneGap's 'online' event to send the error when the device goes online.

这不是完美运行,但(这就是为什么我不加入这个作为一个正式的答案)

It's not running perfectly yet (which is why I'm not adding this as an official answer)

推荐答案

没有,相信我,这是一个巨大的我们量坏事!

No, and believe me, it's a bad thing for a huge amount of us!

这篇关于是什么原因造成我的web应用程序拖延一些Android设备?如何检测?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆