GLBasic forum

Main forum => GLBasic - en => Topic started by: ampos on 2010-Nov-18

Title: Launch AppStore from my app
Post by: ampos on 2010-Nov-18
I have on my new app a link to the appstore to my other game:

Code (glbasic) Select
NETWEBEND "itms://itunes.apple.com/us/app/snowland/id398934107?mt=8"

On iPhone4 4.1 it works, but on 3G with 3.1.3, it does not. The program just closes but the appstore is not there.

Any hint?
Title: Re: Launch AppStore from my app
Post by: ampos on 2010-Nov-18
Changed to

Code (glbasic) Select
NETWEBEND "http://itunes.apple.com/es/app/snowland/id398934107?mt=8"

AND removed GLB_ON_QUIT:...
Title: Re: Launch AppStore from my app
Post by: matchy on 2010-Nov-18
What about if you need the GLB_ON_QUIT? Can you call NETWEBEND in there?
Title: Re: Launch AppStore from my app
Post by: ampos on 2010-Nov-18
My program had

Code (glbasic) Select
sub GLB_ON_QUIT:
   end
endsub


Not sure about what could happend if needed the GLB...

Title: Re: Launch AppStore from my app
Post by: matchy on 2010-Nov-18
I'm just wondering; rather than end the app suddenly, perhaps it could be called last. So that the game shuts down formally, does a flag with END in the game loop work?
Code (glbasic) Select

SUB GLB_ON_QUIT:
   IF flag_webend NETWEBGET
ENDSUB
Title: Re: Launch AppStore from my app
Post by: Kitty Hello on 2010-Nov-18
netwebend calls BLG_ON_QUIT and then quits to open the url. What does the console print if it doesn't work?
Title: Re: Launch AppStore from my app
Post by: ampos on 2010-Nov-18
Quote from: Kitty Hello on 2010-Nov-18
netwebend calls BLG_ON_QUIT and then quits to open the url. What does the console print if it doesn't work?

Ah, then it is the reason my prog didnt work. As I set and END on GLB and netwebend first call GLB, the web-launch never happend...

:nw: