This question already has an answer here:
Embed App Store in my app
(1 answer)
Closed 8 years ago.
I am trying to add a feature that allows people to download other apps of mine from within the app.
If I simply link to the App Store, it will boot the user to the App Store app and display my app, however I want an in-app method. I've seen this on Facebook's iOS app. How do I implement this sort of system?
The id is from the AppStore URL
https://itunes.apple.com/au/app/facebook/id284882215?mt=8
SKStoreProductViewController* productViewController = [[SKStoreProductViewController alloc] init];
[productViewController loadProductWithParameters:#{SKStoreProductParameterITunesItemIdentifier:#(284882215)} completionBlock:nil];
[productViewController setDelegate:self]; // Implement the delegate to make the cancel button work
[self presentViewController:productViewController animated:YES completion:nil];
Related
This question already has an answer here:
Obtain Apple software id number before appstore submission (for Appirater)
(1 answer)
Closed 7 years ago.
My app isn't in the app store yet, in fact I haven't even uploaded it to iTunes Connect yet. I want to add a rate button in my iOS game. Rate button usually takes the user from the app to the link in the app store for your game. How do I add a rate button if my app is not in the app store yet since I don't have a link to the app store where my game would be.
Is there another way to add a rate button without my game being in the app store. Can the Rate button only be added when the App is in the app store (after release) or are there other ways before the app is in app store?
I know I'm going to have to use...
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#""]];
But what goes inside that string since my app is not in app store but I do have iTunes connect setup however for development at this time.
Create your app in Itunes Connect and you will be given an App ID. You can use this App ID to reference your app on the itunes app store:
http://itunes.apple.com/app/idyourID
Be sure to include id in front of your id number. I.e, id123456789
Another way would be to have your link in the cloud DB somewhere (i.e. Parse) and when the app is released update the link, but that would be overkill for this situation.
We have two iOS apps a Free version and Paid version. The only difference between these apps is that Free version as an IAP to fully unlock the content.
One of the modes in which the game can be played is multi-player over Game Center. The Auto-Matching and Invite Friends works perfectly fine when someone tries to match Free App vs Free App or Paid app vs Paid app.
The problem however is, it does not ever find a Auto-Match when a user from Free app is logged in and another player of paid app is logged in. This neither works in Sandbox nor in Production environments.
Other setup information:
Both these apps are in the same game center group
Both these apps have shared leader board and achievements (which is working fine)
Both these apps have Multiplayer Compatibility correctly setup with each other in iTunes Connect.
We had written to Apple Support about this problem but they came back saying Game Center is working fine and other setup in iTunesConnect also seems to be fine, they advised to check app code.
I have tried everything but nothing seems to be working. Here is the code we have in our app to do the Game Center matching
GKMatchRequest *request = [[[GKMatchRequest alloc] init] autorelease];
request.minPlayers = 2;
request.maxPlayers = 2;
request.playersToInvite = nil; // This is not null only in case of friend invitations
GKMatchmakerViewController *mmvc =
[[[GKMatchmakerViewController alloc] initWithMatchRequest:request] autorelease];
mmvc.matchmakerDelegate = self;
[_presentingViewController presentViewController:mmvc animated:YES completion:nil];
Have also tried to set a value for playerGroup property of GKMatchRequest but didn't help
Questions:
Is there a missing link in the code we are using because of which the Auto-Match doesn't work?
Has anyone actually got this to work? If Yes, Could you please share some code samples and/or missing setup instructions?
This probably won't work. Game Groups are used to share Leaderboards but you can't create a match request to connect two different Apps. It even won't work with identcal apps, if the version information (version AND build) is not exactly the same. This is true for automatching but it also won't list online friends or nearby devices, that run a different version of the App.
I have found the answer to this problem. It has to do with the app prefix of the two apps. If they have a different app prefix, it will NOT work. You can change your old app prefix to match your new app prefix by contacting Apple https://developer.apple.com/contact/ .
You can read more here: https://developer.apple.com/library/ios/technotes/tn2311/_index.html Once Apple completes the prefix change for the old app, they will start working without any code changes or even resubmission of the apps.
This question already has answers here:
Is it possible to get app id from iOS application programmatically?
(7 answers)
Closed 8 years ago.
Assume this scenario, there are several apps which will use shared feature. THis feature want to know what's current application's app Id.
My question is: Is there a way to get the application's app Id programmatically. Or What I need do is always find the app id in iTunes and hard coded into my app?
Edit:
I do not make the question clear enough. the app id for twitter in app store is 333903271 and I can use this link(itunes.apple.com/us/app/twitter/id333903271?mt=8&uo=4) to open twitter in appstore. I want this app id, not the bundle id. thanks.
That is a feature of the app store, not the OS. For example, until you setup your app in the app store, you won't have this ID. Instead, once you know the id, you should store it in your App's Info.plist then you can just query it via NSBundle objectForInfoDictionaryKey:.
As long as all your apps store it using the same key, your shared component can rely on it being there.
[[NSBundle mainBundle] bundleIdentifier] should get you what you're looking for.
This question already has answers here:
Direct "rate in iTunes" link in my app?
(5 answers)
Closed 9 years ago.
Application development is completed. It is not yet submitted on iTunes, but I have a flow to show the iTunes review screen from application.
How do we redirect the iTunes review from application?
I have tested using the below code...
NSString *str = #"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=337064413";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
Do we only need to change the application id for my application?
For iOS 7 use this link:
itms-apps://itunes.apple.com/app/id337064413
Change 337064413 to your app's id
The code will look like this:
NSString *str = #"itms-apps://itunes.apple.com/app/id337064413";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
However, this approach will not bring you to the Review page, you'll get App Description page. There is no way to send user directly to Review page anymore.
This question already has answers here:
Customer Reviews and App Analytics on the apple store ? [closed]
(2 answers)
Closed 9 years ago.
I have published an application on the apple store, and hope to know how many users launch my application on their devices.
But how can I know it? Do we need to implement some sort of code in my application? If yes, I will implement it for the next version, because my first version is already on the apple store?
I need your help, thank you!
You can use Google Analytics for counting the active users using below code
id<GAITracker> tracker = [[GAI sharedInstance] trackerWithTrackingId:GOOGLE_TRACKING_ID];
If you want to check the unique users then you can use flurry or you can do this by web service.