WebGadget Android

Found an issue in SpiderBasic ? Please report it here !
Noos88
Posts: 3
Joined: Sat Nov 15, 2025 2:20 pm

WebGadget Android

Post by Noos88 »

Hello, I have a problem with version 3.10 of SpiderBasic, the WebGadget does not work correctly on Android.
Do you have a solution? Thank you.

Code: Select all

Enumeration 
  #Window
  #GadgetWeb
EndEnumeration

Global URL.s= "http://www.spiderbasic.com"

ExamineDesktops()
Global w = DesktopWidth(0)
Global h = DesktopHeight(0)
Global Wgadget

Procedure onResize()
  Protected w = DesktopWidth(0)
  Protected h = DesktopHeight(0)
  ResizeGadget(Wgadget, #PB_Ignore, #PB_Ignore, w , h)
EndProcedure

;Window (Full Screen)
OpenWindow(#Window, 0, 0, w, h, "BlocTel", #PB_Window_Background)
; CloseDebugOutput()
;Web Gadget
WebGadget(#GadgetWeb, 0, 0, w, h , URL)

;Triggers
BindEvent(#PB_Event_SizeDesktop, @onResize())
User avatar
Paul
Posts: 213
Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada
Contact:

Re: WebGadget Android

Post by Paul »

Code: Select all

ResizeGadget(Wgadget, #PB_Ignore, #PB_Ignore, w , h)
Wgadget = ??
Noos88
Posts: 3
Joined: Sat Nov 15, 2025 2:20 pm

Re: WebGadget Android

Post by Noos88 »

Sorry, I had created a small piece of code to show you.

Code: Select all

Enumeration 
  #Window
  #GadgetWeb
EndEnumeration

Global URL.s= "http://www.spiderbasic.com"

ExamineDesktops()
Global w = DesktopWidth(0)
Global h = DesktopHeight(0)

Procedure onResize()
  Protected w = DesktopWidth(0)
  Protected h = DesktopHeight(0)
  ResizeGadget(#GadgetWeb, #PB_Ignore, #PB_Ignore, w , h)
EndProcedure

;Window (Full Screen)
OpenWindow(#Window, 0, 0, w, h, "BlocTel", #PB_Window_Background)
; CloseDebugOutput()
;Web Gadget
WebGadget(#GadgetWeb, 0, 0, w, h , URL)

;Triggers
BindEvent(#PB_Event_SizeDesktop, @onResize())
User avatar
Paul
Posts: 213
Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada
Contact:

Re: WebGadget Android

Post by Paul »

Works if I change

Code: Select all

Global URL.s= "http://www.spiderbasic.com"
to secure website...
Global URL.s= "https://www.spiderbasic.com"
Noos88
Posts: 3
Joined: Sat Nov 15, 2025 2:20 pm

Re: WebGadget Android

Post by Noos88 »

Thank you very much, I hadn't tried secure sites. But regarding unsecured sites, any ideas?
Fred
Site Admin
Posts: 1835
Joined: Mon Feb 24, 2014 10:51 am

Re: WebGadget Android

Post by Fred »

Did you tried to check the 'Enable unsecure HTTP support' in the Create App dialog ?
Post Reply