JGrn84
JGrn84

Reputation: 750

Open app store with link not working

I'm currently using this code to open the app store to my app (which is on iTunes connect but not released yet):

 if self.nodeAtPoint(location) == self.rateButton {
                UIApplication.sharedApplication().openURL(NSURL(string: "itunes.apple.com/app/id0000000000000")!) }

It won't open in the simulator or on my phone in testing, is this because the app isn't yet released or is my code wrong?

Upvotes: 2

Views: 2590

Answers (1)

Dharmesh Kheni
Dharmesh Kheni

Reputation: 71854

I think The link will only work after the app has been approved.

Reference from the omz's answer from HERE.

Upvotes: 2

Related Questions