Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
Documentation for the 'require' plugin - Gideros Forum

Documentation for the 'require' plugin

Explain to me what these points mean?

"Enable translucent canvas (Android,iOSAlpha)
"Prevent app to be backed up/restored"
"This app can respond to these url schemes: (with ',' separator)"
"This app can open these url schemes: (with ',' separator)"
my games:
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!

Comments

  • I think the last two are for deep links.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • I think the last two are for deep links.

    I do not understand, can you explain in more detail?
    my games:
    https://play.google.com/store/apps/developer?id=razorback456
    мій блог по гідерос https://simartinfo.blogspot.com
    Слава Україні!
  • So if you have a url to the app in the store with some parameters in the link, those parameters can be passed to the app.

    Likes: oleg

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+1 / -0 ) Share on Facebook
  • So if you have a url to the app in the store with some parameters in the link, those parameters can be passed to the app.

    Can you give an example code for how to handle Gideros startup options?
    my games:
    https://play.google.com/store/apps/developer?id=razorback456
    мій блог по гідерос https://simartinfo.blogspot.com
    Слава Україні!
  • No, I've not used that feature (except for html). Here is how I do it for that:
    	local url=JS.eval("window.location.href")
    	local line=find(url,"?")
    	if line then
    		params=parseUrl(sub(url,line+1))
    	end
    You also need this:
    function urlDecode(s)
    	s=s:gsub('+',' '):gsub('%%(%x%x)',function(h) return string.char(tonumber(h,16)) end)
    	return s
    end
     
    function parseUrl(s)
    	if s then
    		if s~="" and not find(s,"=") then s=s.."=1" end
    		local ans={}
    		for k,v in s:gmatch('([^&=?]-)=([^&=?]+)') do
    			ans[lower(k)]=urlDecode(v)
    			print (k.." "..v)
    		end
    		return ans
    	else
    		return {}
    	end
    end
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+3 / -0 ) Share on Facebook
Sign In or Register to comment.