尝试在 Android API 级别 10 上启动新创建的应用程序(无代码更改)时,我遇到了一个奇怪的问题。在模拟器上启动应用程序时,它进入无限循环,每次触发后 trigger.io 启动徽标闪烁环形。我在控制台中看到以下输出:
[ INFO] I/Forge ( 328): Loading initial page in webview.
[ INFO] I/Forge ( 328): Application in focus, resuming webview.
[ INFO] D/Forge ( 328): Returning event: {"event":"internal.connectionState
Change","params":{"wifi":false,"connected":true}}
[ INFO] I/Forge ( 344): Loading initial page in webview.
[ INFO] I/Forge ( 344): Application in focus, resuming webview.
[ INFO] D/Forge ( 344): Returning event: {"event":"internal.connectionState
Change","params":{"wifi":false,"connected":true}}
[ INFO] I/Forge ( 356): Loading initial page in webview.
[ INFO] I/Forge ( 356): Application in focus, resuming webview.
[ INFO] D/Forge ( 356): Returning event: {"event":"internal.connectionState
Change","params":{"wifi":false,"connected":true}}
奇怪的是,它在较低和较高的 API 级别上运行良好。