Xcode 7 Swift 2 Prompt user to rate your iOS app within your app - app-store

I've seen many posts on prompting/alerting user to rate the app within the app. As I understood, Apple will only allow users to rate it within App Store.
Now in my app, I would like to have a button to rate my app. When you click the button, it should take the user to App Store and directly to my app Page.
How I can create the link to my App in App Store when I've not yet uploaded my app in App Store. How will I know to direct the link to my App in App Store?
Any help will be appreciated.
Thank you.

You can use the app identifier number that is attached to your app that you see in your iTunes developer account. It will not be a live URL until your app is published. More information here:
How to link to apps on the app store
The button itself should have an action function that opens a browser, like so:
UIApplication.sharedApplication().openURL(NSURL(string: "<YOUR_APP_URL>"))

Related

Rate and Review within an app take the user to app store thus leave our app - Totaly Undesired

Refering questions
URL for sending a user to the app review page on device's app store
Rating and reviews from within an IOS app
Direct "rate in iTunes" link in my app?
All the solutions to these question take the user to app store and leave our app.
Is it possible to rate and review the app from within app like a web view. So that the user may not have to leave the app.
Please suggest
Currently, it's changed. You can use SKStoreProductViewController to show App Store from within an app as described in my answer here.
There is no alternative. Users can only rate and review through the App Store app.

Apprequest notification didn't lead to App Store as "iOS Native Deep Linking" is enabled

My question is simple. I sent a apprequest to someone who doesn't install my app and hopefully they click it and are lead to App Store and then install my app.
My case is that my test user has received the notification in his Facebook iPhone app. He clicked it and the screen transferred and nothing happened. The screen jumped to home screen.
It's strange to me.
I've set "iOS Native Deep Linking" and "iOS SSO setting" enabled and a valid "iPhone App Store ID" as well, which I hope my test user would be led to download it.
I found the sentences in the document,
"When someone taps a deep link in the Facebook for iPhone app, the user is immediately directed to your iOS app. If the app is not installed, the user is taken to the App Store to download your app."
I believe Facebook iPhone App should redirect the users to App Store as they tap on the notification. But it didn't and I don't know why.
Any suggestions? Many thanks.

access itunes via my own app

I'm newbie at this, so question -
I'm trying to create app which should be similar to native ipad/iphone reader. And I want users are be able to buy books via my app in itunes. I mean, apple approve new book, than user opens app, press smth like "buy" button and goes to app's page which contains approved book in itunes, than he can buy it using itune's account. is it possible to do?
No you can't open iTunes in your app..not only iTunes but any other app on the device..
You can just open them with URL schemes if the other app has one..

How to test an iOS Facebook app before getting an app ID from Apple?

I'm developing an iPhone app which uses Facebook sharing. I cannot create the Facebook app because it requires an "iPhone app store ID". I don't have this id because I haven't submitted the app yet. I can't submit the app because it doesn't work yet... because the Facebook integration isn't set up.
It seems that I'm stuck in a paradox! Am I missing something?
You can generate an Apple ID for your app, by logging into iTunesConnect and going through the submission process. Just stop short of clicking the 'Ready to Upload' button. Then your app will have an Apple ID that you can use, and you can still go back and change any of the metadata that Apple asked you to enter (description, keywords, screen shots, etc.).
Once you've finished building your app, log back into iTunesConnect, make the final changes to your App Store details, then upload the binary.
You don't need YOUR Appstore ID, you just need ANY. This ID is used for a link from facebook to your App in the store. As long as you don't care that this link will leed to another app - not yours - i.e. while testing, you can just enter any Appstore ID. That's what I did and it works fine.
Facebook's iOS tutorial says:
iPhone App Store ID - If you have an iPhone app that is listed in the
iTunes App Store enter the ID here, e.g. 123456. If Facebook links out
to your app and finds that the user does not have your app installed,
then it will take the user to your app in the store. The user can then
install your app. If your app is not in the iTunes App Store you can
enter any valid app's ID but be sure to update this when your app is
approved in the App Store.
For testing use 0(Zero),
iPhone Store ID = 0
iPad Store ID = 0
and click on Save Changes.
0 Will be disappeared but your work will be done.
Note:- update this id before going live.

URL for sending a user to the app review page on device's app store

What's the URL to launch in order to bring the iTunes App Store to the front, and open it to show the Reviews page of an app?
I want to send my users to the "Write a Review" page.
Some other SO answers provided URLs like the one below, but it doesn't seem to work:
itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=12345678&pageNumber=0&sortOrdering=1
Any suggestions for a URL that'll work on iPhone and iPad?
Update: iOS 4.2 seems to have fixed this and links now open the App Store app directly rather than the review page.
This article Dissecting iTunes links explains everything.
Heading straight to a review form
It’s also possible to send someone
straight to the review form for an
app.
https://userpub.itunes.apple.com/WebObjects/MZUserPublishing.woa/wa/addUserReview?id=337064413&type=Purple+Software
Simply replace the ID with your app’s
ID to create a URL for your app.
On a desktop or laptop, this will take
you directly to the review form in
iTunes for the app or item. On an
iPhone or iPod touch, this will open
MobileSafari, then open iTunes or the
App Store app on the reviews page,
leaving the user only one tap away
from writing a review.
To find out an item’s ID, right (Mac &
PC) or control-click (Mac) on a link
to the item in iTunes and select Copy
Link. The result will look something
like this.
http://itunes.apple.com/au/album/dig-your-own-hole/id19605549
http://itunes.apple.com/au/app/consume-mobile-isp-packages/id337064413?mt=8
The ID is the number in the URL after
“id’.
It might be worth noting that this URL
was created using iTunes 8. I don't
think there’s a way to create review
links in iTunes 9, so maybe this URL
is being phased out. Use with caution.
Update: #mareMtl has provided an
alternative review link for apps.
Please note that it only works on
iPhone OS devices.
itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=337064413
I tried a bunch of different links, this is only one working for me on iPhone AND iPad consistently:
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?pageNumber=0&sortOrdering=1&type=Purple+Software&mt=8&id=YOUR_APP
Check out Appirater - http://arashpayan.com/blog/index.php/2009/09/07/presenting-appirater/
Every time the user launches your app, Appirater will see if they’ve used the app for 30 days and launched it at least 15 times. If they have, they’ll be asked to rate the app, and then be taken to your app’s review page in the App Store.
this works for me:
itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=584691809
Am using Appirater for Rating my App
These links in AppiRater
// for ios6 or earlier
NSString *templateReviewURL = #"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=APP_ID";
// for ios7
NSString *templateReviewURLiOS7 = #"itms-apps://itunes.apple.com/app/idAPP_ID";
These links works fine .
But takes me to "Details" page of the app .
But it should go to "Ratings and Reviews" page..
suggest me any idea
Thanks
iTunes has a link maker you can use to get the URL. Tested on my app. It works.
For Requesting for rate and review to user after iOS 10.3+
The SKStoreReviewController allows users to rate an app directly from within the app through a dialog box. The only downsite is that you can only request StoreKit to display the dialog, but can't be sure if it will.
import StoreKit
func requestToRate() {
SKStoreReviewController.requestReview()
}