How can I add a link for a rate button with swift?

前端 未结 13 721
面向向阳花
面向向阳花 2021-01-29 18:57

First I don\'t know how to get the link before I submit my app, and if the link is for each country app store or is it universal?

Also I don\'t know if the way to do it

13条回答
  •  感情败类
    2021-01-29 19:19

    All the above answers are not best practices they might be affecting your app store ratings. For best practice use the below code.

    func ReviewAppController() {
        let alert = UIAlertController(title: "Feedback", message: "Are you enjoying our App?", preferredStyle: .alert)
        alert.addAction(UIAlertAction(title: "Dismis", style: .cancel, handler: nil))
        alert.addAction(UIAlertAction(title: "Yes, i Love it!", style: .default, handler: {_ in
            SKStoreReviewController.requestReview()
        }))
        alert.addAction(UIAlertAction(title: "No, this sucks!", style: .default, handler: {_ in
            //Collect feedback
        }))
        present(alert, animated: true)
    }
    

提交回复
热议问题