This repository contains implementation of requesting an App Store rating functionality for a Backbase iOS application
"Rating Request" implementation lets you request App Store rating from the users of a Backbase application. The implementation is flexible enough to be used in any place of the application as required and configurable on the frequency (at the moment it's number of months).
Mobile SDK 10.1.0 or higher is recommended due to Backbase Secure Storage usage.
Follow steps in this section if you are setting up the project for the first time, otherwise, skip to the next section.
Before building the project make sure all above requirements are installed on your device.
1. Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. Install Bundler
gem install bundler
repo-art uses authentication as specified in your standard netrc file.
Log in to Artifacts and click on your name in the top right. Enter your password again and click "Unlock". Next to the "Encrypted Password" field, copy your encrypted password by clicking the "Copy encrypted password to clipboard" button.
Open ~/.netrc on your computer. If this file does not exist, create it.
Add the following 3 lines to the file, replacing {username}
with your artifactory username and {encrypted password}
with the encrypted password you just copied.
machine repo.backbase.com
login {username}
password {encrypted password}
Within the project directory:
bundle install
bundle exec pod repo-art add bbartifacts3 https://repo.backbase.com/api/pods/ios3
bundle exec pod repo-art add bbartifacts-retail3 https://repo.backbase.com/api/pods/ios-retail3
bundle exec pod repo-art update bbartifacts3
bundle exec pod repo-art update bbartifacts-retail3
Having a hard time with Ruby? see troubleshooting.
Please review official Apple Guidelines for requesting App Store Ratings from users.
"RatingRequestApp" is a test app that includes one ViewController which has the code to trigger an App Store rating in viewDidAppear(_ animated:)
method as an example.
// Request app store review, with 3 months frequency.
// this will not request another review request for 3 months
let ratingRequestManager = RatingRequestManager(configuration: .init(frequencyInMonths: 3))
ratingRequestManager.requestReviewIfAppropriate()
This implementation is supported from 2023.09 LTS onwards.
Install rbenv
rbenv is a tool that lets you install and run multiple versions of Ruby side-by-side. It's simple, lightweight, and reliable.
brew update && brew install rbenv ruby-build
Add the following lines to your profile file
Your profile file is ~/.zshrc if you are using Z shell, or ~/.bash_profile if you are using Bash
export PATH="/usr/local/opt/ruby/bin:$PATH"
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
In your project directory, install ruby version required for the project
rbenv install
Then continue the flow in the as in the Getting Started section.
Test the App Store rating requests in accordance to the official guidelines
Backbase License. See LICENSE for more info.