Directing to review page?

Hi,

I’ve seen some apps that after a period of time ask to be rated. If you agree then the AppStore is loaded and the apps rating page displayed.

I presume this is just a web address but how can I find out what the web address is for my apps rating page?

[import]uid: 9371 topic_id: 7300 reply_id: 307300[/import]

The format is

itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=YOURAPPID

Calling it through system.openURL works perfectly. Just remember to give users the choice to opt out of receiving further reminders if you show the please-rate screen through an Alert View.

We just published a library to take care of this for you in the code exchange section as well.

hth [import]uid: 10292 topic_id: 7300 reply_id: 25790[/import]

Hey thanks. Could you please provide an actual example of the text file? Ta.

Also I trust you need to check the number of times it’s been run right at the beginning of the app rather than in a menu screen that might be entered several times during the life of the app. Any advice? [import]uid: 9371 topic_id: 7300 reply_id: 25890[/import]

> Hey thanks. Could you please provide an actual
> example of the text file? Ta.

http://reflare.com/news.txt

For the repeated loading, there are a couple of solutions.
If you’re using a loading screen, put it there.

If you’re using the director class, put it into the main file, instead of into a scene.

Otherwise, just use a global variable to keep track

[lua]varPromote = true

if (varPromote) then
promote.displayNews(“http://example.com/news.txt”)
promote.offerRating(5, “itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=YOURAPPID”)
varPromote = false
end[/lua] [import]uid: 10292 topic_id: 7300 reply_id: 25893[/import]

Cool. A BIG thank you for this! I’ve placed it in my splash screen which in the Director setup sits between my main and menu screens. Works a charm :slight_smile:

[import]uid: 9371 topic_id: 7300 reply_id: 25895[/import]

I’m using the full app id…

6B8N4B8K98.com.boiledsweets.keepeeuppy

Is that correct?

I’m using this…

promote.offerRating(5, “itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=6B8N4B8K98.com.boiledsweets.keepeeuppy”)

And was expecting when clicking “rate” it would open in a browser window from the simulator.

Are the “purple” and “software” parts correct? [import]uid: 9371 topic_id: 7300 reply_id: 25897[/import]

You need to use the iTunes store ID.
e.g.
http://itunes.apple.com/us/app/newtons-laws/id418800081?mt=8&ls=1
-> 418800081
-> itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=418800081

(On that note, who else hates the uses who will download an app on 5th grade physics and then complain it contains… uh… 5th grade physics?)
Also, the itms-apps:// links only work on device. They open in mobile Safari, which then redirects them to the AppStore App. [import]uid: 10292 topic_id: 7300 reply_id: 25898[/import]

It’s stopped working in the simulator!

Is it because I’ve answered don’t both me again?

Where is the count file stored on a mac? [import]uid: 9371 topic_id: 7300 reply_id: 26226[/import]

0x90? [import]uid: 9371 topic_id: 7300 reply_id: 26229[/import]

It’s stopped working in the simulator!

Is it because I’ve answered don’t both me again?

Where is the count file stored on a mac?

Well, yeah.
If you say “don’t bother me again”, it won’t bother you again
The count file is stored in the Documents folder on every platform.

0x90?

Now this part, you only say when you pay me for a support contract.
Watch your tone when someone gives you free support for a free library. [import]uid: 10292 topic_id: 7300 reply_id: 26233[/import]

Sorry - what happened was I asked the question, then I edited it to say don’t worry as I figured I’d search my disk for the count file but it didn’t find it anywhere! Odd.

So then I edited the post back to the question but thought you might have already looked at my message saying don’t worry hence me bumping it just in case you thought, ah he doesn’t need help and then didn’t check again.

Didn’t mean it to look like I was demanding anything!!!

I’ve searched the entire machine again for crossSale.txt and it’s deffo not there. Weird. [import]uid: 9371 topic_id: 7300 reply_id: 26234[/import]

Okay.
Keep in mind that thread posters get an email update for every new post and edit, so this technique won’t be necessary in the future.

The file is in your Documents folder, named what is defined at the top of the library in the definitions section.
Your Documents folder is in your sandbox.
Your sandbox can be found by running the app in the simulator, then clicking “File” -> “Show Project Sandbox”. [import]uid: 10292 topic_id: 7300 reply_id: 26236[/import]

Many thanks!!! :slight_smile: [import]uid: 9371 topic_id: 7300 reply_id: 26238[/import]

Sorry one more question…

How can I zap the count file on the actual device?

Cannot see to find documents folder in iPhone 4 [import]uid: 9371 topic_id: 7300 reply_id: 26273[/import]

Easily done.

An uninstall and re-install using the iPhone Configuration Utility will do that for you. [import]uid: 10292 topic_id: 7300 reply_id: 26294[/import]

@0x90

I am getting the following error in the Simulator. I have used the following code near the top od main.lua and I am using the Director class.

Any ideas?

  
promote = require(“promote”)  
  
promote.offerRating(5, “itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=YOURAPPID”)  

Syntax error: /Users/macuser/Documents/work/corona development/Frenzy147/main.lua:18: unexpected symbol near '?'
[import]uid: 7863 topic_id: 7300 reply_id: 26410[/import]

I found that cut and pasting from here caused a problem with the "

Delete the " and enter them again [import]uid: 9371 topic_id: 7300 reply_id: 26412[/import]

@dweezil

Excellent that did the trick - many thanks! [import]uid: 7863 topic_id: 7300 reply_id: 26573[/import]

Hi
What is YOURAPPID ? You get this ID when yours app is in app store ? So you have to add this rating feature as an update when you will have YOURAPPID? Sorry but I don’t understand exactly. [import]uid: 13156 topic_id: 7300 reply_id: 28223[/import]

I think you can get your app ID from iTunes connect before your app has been submitted but don’t quote me on that:) [import]uid: 7863 topic_id: 7300 reply_id: 28230[/import]