SB 3.10 App on older Android with CanvasGadget crash on ResizeObserver
Posted: Tue Nov 18, 2025 12:42 pm
Hi,
at the moment I'm testing one big Android app compiled the first time with SB 3.1 on a lot of devices, starting with Android >= 10 everything seems to work, but on older Sunmi devices with for example Android 7.1.x, the app seems to run only until there is a CanvasGadget() defined, then the Procedure crashes with something like
Keeping the app directory and looking in the line there is the window.spider_CanvasGadget=function definition with a new ResizeObserver.
I'm not sure, but with older SB I never had this error, is it possible, that it has to do with the in SB 3.1
added new feature?
Or is it simply a problem of the new cordova-android 14.0 or Android SDK 35? I can't find any information about the supported Android versions...
I searched a bit and found some hints, for example to define a dummy
but putting this at the top of my app doesn't change anything.
Greets, hoerbie
at the moment I'm testing one big Android app compiled the first time with SB 3.1 on a lot of devices, starting with Android >= 10 everything seems to work, but on older Sunmi devices with for example Android 7.1.x, the app seems to run only until there is a CanvasGadget() defined, then the Procedure crashes with something like
Code: Select all
Uncaught ReferenceError: ResizeObserver is not defined (file:///android_asset/www/spiderbasic.js?t=xxx, line 3163I'm not sure, but with older SB I never had this error, is it possible, that it has to do with the in SB 3.1
Code: Select all
- Added: #PB_EventType_Resize support for ContainerGadget(), ScrollAreaGadget(), Canvas() and PanelGadget()Or is it simply a problem of the new cordova-android 14.0 or Android SDK 35? I can't find any information about the supported Android versions...
I searched a bit and found some hints, for example to define a dummy
Code: Select all
!class ResizeObserver {
!observe() {}
!unobserve() {}
!disconnect() {}
!}Greets, hoerbie