execute javascript location.reload crashes[android webview]

Bugs will be moved here once resolved.

Post » Sat Dec 02, 2017 2:48 pm

Problem Description
execute javascript location.reload crashes[android webview]
i made a simple application with a WebView Object in android studio it will run the html5 game but when i click button to location.reload it will crash the application in some devices
Attach a Capx


Description of Capx
Image

Steps to Reproduce Bug
  • execute javascript with Browser plugin
  • call " location.reload(); " which is run in android webview
  • webview crashes

Observed Result
____ What happens? ____

Expected Result
refresh the page with location.reload

Affected Browsers
  • Android WebView(YES)

Operating System and Service Pack
Samsung note4 (android 6) [it will not crash]
samsung s6(android 7) [will crash]
honor8 (android 7) [will crash]
asus Zenpad(android 6) [it will not crash]

Construct 2 Version ID
r244
B
5
S
1
Posts: 19
Reputation: 413

Post » Sat Dec 09, 2017 2:11 pm

help me please
B
5
S
1
Posts: 19
Reputation: 413

Post » Sat Dec 09, 2017 4:09 pm

Maybe it's not being cashed.
Try location.reload(true) perhaps?
Or try the browser objects reload action.
Image ImageImage
B
172
S
50
G
188
Posts: 8,504
Reputation: 118,227

Post » Sat Dec 09, 2017 5:15 pm

If it crashes the web view, it's an Android/Chrome bug, not a C2 bug, so you should report it to Google.
Scirra Founder
B
405
S
239
G
91
Posts: 24,760
Reputation: 197,314


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests