devresponse plugin
Enables you to retreive app-reviews and also answer them
Sample
lane :reply_all_unanswered do
Spaceship::Tunes.login("[email protected]")
app = Spaceship::Application.find("krone.at-fivexfive")
# get all reviews from AT
reviews = app..reviews("AT")
# iterate over each review - thx the 4+ and apologize all below
reviews.each do | review |
if review. >= 4
= "Many Thx for your kind feedback and the awesome rating 🎉"
else
= "We are really sorry 💔 that you have troubles with the app - feel free to contact us directly at [email protected] - to get technical assistance!"
end
# which not yet have gotten a dev response
unless review.responded?
# respond to this user
review.developer_response.create!()
end
end
# here is a sample of editing a existing developer response
if reviews.first.responded?
reviews.first.developer_response.update!("First you where awesome 👏 but now you are 🚀")
end
end
run with fastlane reply_all_unanswered