问题是 Android Sencha 应用程序中的请求在一段时间后停止
我在 sencha 应用程序中遇到问题,我在其中调用了 window.setInterval 函数 在特定时间后获取用户消息,它在 iPhone、桌面(chrome)中工作,但在 Android 设备上请求在一段时间后停止。并且在 iPhone 和桌面上正常工作;桌面。
所以请帮帮我。 谢谢。
i have issue in sencha application in which i called window.setInterval function
to get user message after some specific time it is working in iPhone,Desktop(chrome)but On Android device request stops after sometime.And working properly on iPhone & Desktop.
So please help me out.
Thank You.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现在某些 Android 设备上,诸如
setInterval
之类的方法可能非常不可靠,并且经常会使浏览器完全崩溃。要解决此问题,我建议您每 X 秒清除一次间隔(取决于您用于间隔的时间量),然后再次重新启动间隔。
I've found that on some Android devices, methods such as
setInterval
can be very unreliable and can often crash the browser completely.To work around, I suggest you clear the interval every X seconds (depending on the amount of time you are using for your interval) and then restart the interval again.