Hi There.
I am working on the lite version of my game, and I need some command / method to open a web browser with url parameter to point to full version of my game.
I open same topic some time ago, and conclude that a new command would be implemmented on next version of glbasic.
This command is implemented allready? I can't find in help file, and i really need urgent to try to improve sales.
King regards, fjsantos.
MS have recently changed the rules on trial version of iPhone software, you no longer need two versions, trial and full... it may be easier to allow a method for unlocking your game to the full version?
Hi bigsofy,
Yep i know that now Apple let use App-in-Purchase on free App (before only can be used on pay App).
Would be great to have a method / command to use App-in-Purchase too, but meanwhile would be great to have a command to open web browser with parameter (and will be helpfull to open not only itunes links).
King Regards, fjsantos.
fjsantos,
can you post the name of your application?
I´d like to take a look. :)
thanks.
Quote from: bigsofty on 2009-Oct-23
MS
??? "Apple"... I got Bill Gates in my head and I can't get him out! :P
I am pretty sure I saw a post the some one was working on calling the O.S. from within the iPhone to allow things like this but I can't find the post...
appstore.mm
#ifdef TARGET_OS_IPHONE
#import <UIKit/UIApplication.h>
// change the ?id=... according to your app
extern "C" void AppStore()
{
NSURL *appStoreUrl = [NSURL URLWithString:@"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=329485776&mt=8&s=143441"];
[[UIApplication sharedApplication] openURL:appStoreUrl];
}
#else
extern "C" void AppStore() { }
#endif
Your project
REQUIRE "appstore.mm"
IMPORT "C" void AppStore()
Just call AppStore() then
Hi There.
@kaotiklabs: You can take a look here: www.tiptapgames.com.
@Kitty Hello: Thanks for sharing code! I will try inmmediatly. Only a question, apple let me use a custom mm library? (appstore.mm?).
King Regards, fjsantos.
I read again the apple sdk agreement and i think that I can't compile .mm files for iphone.
Any other suggestion, i really need this command!
King Regards, fjsantos.
I have coded allready lite version of my game.
I really need this command or a suggestion.
King Regards, fjsantos
The .mm files are compiled as an objC source. It will be linked directly into your program as all your other code is. There's no loading of dynamic libraries nor any scripting involved. I'll never post anything illegal.
Hi There!
Sorry, i misunderstood sdk agreement and code, my mistake!
I trying the code above but i have problems compiling (i didn't use require before).
The error is
/cygdrive/D/Projects/Noid - Lite\appstore.mm:2:32: error: UIKit/UIApplication.h: No such file or directory
/cygdrive/D/Projects/Noid - Lite\appstore.mm: In function 'void AppStore()':
/cygdrive/D/Projects/Noid - Lite\appstore.mm:7: error: 'NSURL' was not declared in this scope
/cygdrive/D/Projects/Noid - Lite\appstore.mm:7: error: 'appStoreUrl' was not declared in this scope
/cygdrive/D/Projects/Noid - Lite\appstore.mm:8: error: 'UIApplication' was not declared in this scope
Anyone can help me to compile this?
King Regards, fjsantos.
Oh. You need the headers? Too bad. I'll implement that function as a hidden one, so you can use it easier.
That will be great!
I will wait impaciently for this.
I think that a lite version of my game, will definitly improve my sales and i will use this command to link lite version to full version.
Thanks for your time.
King Regards, fjsantos.
Good idea fjsantos
Me personally i never buy a game in the appstore unless theres
a demo or a video of the gameplay, looks nice though
Good luck with it.
okee
Thanks okee, i hope the lite versions helps!
King Regards, fjsantos.
Any advance, please?
I'm working on it. The problem is, that it must be x-platform. So far Mac OS-X is missing, only.
Ok, thanks for the update, iwait impaciently to release my lite version.
King Regards, fjsantos.
I Have just seen the new command Webends. I think this command, will be very helpfull for me and others users trying to do his own way in the iPhone market.
Great improvement!
I have to say "THANKS A LOT!!!".
King Regards, fjsantos.