Launch AppStore from my app

Previous topic - Next topic

ampos

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?

ampos

Changed to

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

AND removed GLB_ON_QUIT:...

matchy

What about if you need the GLB_ON_QUIT? Can you call NETWEBEND in there?

ampos

My program had

Code (glbasic) Select
sub GLB_ON_QUIT:
   end
endsub


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


matchy

#4
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

Kitty Hello

netwebend calls BLG_ON_QUIT and then quits to open the url. What does the console print if it doesn't work?

ampos

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: