Blog / Getting users for your app

How to build a referral program for a mobile app

Short answer

A referral program for a mobile app lets a current user invite someone and earn a reward if that person becomes a real user. Connect the invite to the new account before the reward is given. Pay after a useful action, never for a review. Apple describes referrals with subscription offer codes, while Google Play allows earned points and deferred subscription billing. Set limits and track the cost of each extra active user.

By the USposted team. Published . 8 min read.

How an invite becomes a reward

  1. Invite

    The user chooses a friend and sees the message before sending it.

  2. Claim

    The friend adds the invite to their account, even if the link is lost.

  3. Use the app

    The friend finishes the useful action named in the rules.

  4. Check

    Your server checks accounts, dates, limits and any purchase.

  5. Reward

    Each person gets the stated reward once, through a route that fits the store.

This is our suggested flow. Apple and Google do not require this order.

A referral screen can show hundreds of shared links without bringing one active user. Start with a narrower question: when one user invites another, can you check that the new person used the app and give each reward once? If you can, you have a program you can test.

This guide covers users who invite people they know. For creators or site owners who earn a commission, use an affiliate program for a mobile app.

Decide what makes a referral valid

Choose an action that shows the friend got something useful. Suppose Roomrow is an invented app for planning shared chores. Its rule could be: "The new user joins or creates a home and finishes three chores on different days within 14 days." An app open is too easy to fake, and a purchase rule leaves out useful free users. The three chores and 14 days are only examples.

Put the rest of the rules on one page:

Show a short version next to the Invite button. If the friend must create an account or start a subscription, say so before they accept. Keep the old rules for invites already claimed.

A useful referral starts after the inviter gets value. In Roomrow, show Invite after someone finishes a week of chores, or when they need another person in their home.

Add a claim step before the reward

Connect the invite, install and any purchase with a claim record. Give it one of these statuses:

StatusWhat changes itWhat people see
OpenAn inviter creates an inviteThe offer and end date
ClaimedA new account accepts one valid inviteInvite added
ReviewThe action is done and waits for checksA date for an answer
EarnedThe checks passHow to get the reward
DeliveredThe store or your server confirms itReward received
ClosedThe invite expires or cannot be approvedThe reason and how to appeal

Use a random invite ID with no email address, phone number or account number in it. Only your server should decide that a reward was earned. Save an ID for each reward, so a repeated request cannot send the same reward again. The inviter should see the progress of the invite, but not how their friend uses the app.

Plan for a link that is lost during installation. Show the code on the web page, and let the friend enter it in the app before they start the useful action. On Android, you can also read the code through Install Referrer. Google keeps that data for 90 days,[13] but your invite can expire sooner.

Claim the invite before an Apple offer

If the friend will get an Apple subscription offer, save the claim first and send them to the offer after that. The order matters when someone redeems a code in the App Store. Apple says that purchase does not include your app account token at the start. Its Set App Account Token endpoint can add one later.[4]

Use a random UUID for the app account. After you verify the purchase, connect it to that account and update the claim once. Until then, show "waiting for Apple". Do not match purchases by time.

Choose a reward the store supports

We checked these rules and tools on November 30, 2026. Using one does not mean that the store will approve your program.

Reward or ruleiPhoneGoogle Play
Review or ratingPaid or incentivized feedback used to raise chart rank is not allowed[1]No rewards for ratings or reviews[6]
Friend's subscriptionAn offer code; Apple lists a member referral program as one use[2]A promo code; check the code type and user rules[9]
Inviter's subscriptionA promotional offer for current or former subscribers, with rules you choose[2]Defer billing for an active subscription[8]
Earned pointsWe found no rule that covers every points programEarned points can be exchanged for in-app digital items without Play billing. Points sold in the app must use it[7]
Custom unlock codeLicense keys and other custom ways to unlock features are not allowed[1]Use the rules for the reward, not a general unlock code

Apple's subscription page says you are responsible for giving the inviter their benefit.[2] Offer codes can be limited to new, current or former subscribers. An app can have up to one million redemptions per quarter. One-time codes expire after up to six months, and each customer can redeem one code per offer.[3]

Apple can also extend an active subscription, but its endpoint is for service outages, canceled events or interrupted live streams.[5] A referral reward does not fit that description. Use a promotional offer when it fits, and remember that the person must have subscribed before.

Google lets you defer billing by one day to one year in each API call. Its own example gives six free weeks to a subscriber who took a survey.[8] A referral reward can be similar, but check your exact offer. Custom promo codes work only for people who have never subscribed. Its redemption limit must be from 2,000 to 99,999, so it is a poor fit for an invite to one friend. One-time codes can also go to current or former subscribers. The limit is 10,000 codes per subscription product each quarter.[9]

Apple also says apps must not make people download other apps or take store-related actions to use their features. Separately, people who pay for a subscription must get it without extra tasks, such as posting on social media or uploading contacts.[1] Keep an invitation optional. Never hide the main features, or something already paid for, until a friend installs the app.

Let people choose who gets the message

Use the system share sheet, so the user chooses the person and the message app. Let them change the message, or copy the link. You usually do not need access to their contacts.

If you do need iPhone contacts, Apple has specific limits. You cannot build your own contact database from that data. The user must start each message and choose each person. You cannot use Select All or select every contact by default. Before sending, show how the message will look and who it will come from.[1] Google also prohibits promoting apps through unsolicited SMS.[10]

In the United States, someone who gets a reward for recommending your app may have a connection that needs a clear disclosure if their audience does not expect it.[11] For example, put "I get an extra project if you use this invite" next to the link in the message.

US email law has another risk. Its definition of who starts a commercial email can include a business that pays or persuades someone else to send it.[12] Before launch, ask a lawyer about your reward, the message and the rules in both people's countries, including privacy, tax and child safety.

Stop abuse without spying on phones

Keep the first version small and easy to check. Roomrow could allow five rewards per inviter during a 30-day test and give none for an install. It would also check for reused purchases and too many claims in a short time. These limits are examples.

Do not refuse a reward because two people share Wi-Fi. They may live in the same home, which is normal for a chores app. Look for stronger facts, such as one purchase used for two accounts. Let a person review unusual cases.

Never give rewards for ratings, reviews or download numbers. Google bans illegitimate ways to raise an install count,[6] and Apple bans manipulation of charts, search, reviews and referrals.[1]

Calculate invitations and their cost

Use one time period for the whole calculation:

active friends per user = senders / active users x invites / senders x installs / invites x active friends / installs

Suppose there are 1,000 active users and 12% send an invite. The 120 senders invite 2.5 people each, so there are 300 invites. Twenty percent of those people install the app, and half of those 60 finish the useful action. The result is 30 active friends:

0.12 x 2.5 x 0.20 x 0.50 = 0.03 active friends per current user

All of these numbers are made up. If new users had the same rates, the next two rounds would add 0.90 and 0.027 people. Every later round together would bring the total from 30 to about 30.93. In this example, almost all of the result comes from the first round.

Why extra users matter
$225 / 30 active friends
$7.50
$225 / 20 extra users
$11.25
Made-up example. It assumes that 10 of the 30 would have joined without the program. These are not typical costs.

Now suppose each active friend leads to two rewards that cost you $3 each. The 30 active friends cost $180. Support and invalid rewards add $45, so the total is $225, or $7.50 per active friend. If 10 would have joined anyway, only 20 are extra. The cost for each extra user is then $225 / 20, or $11.25. You need the test below to estimate how many are extra.

The four parts of the formula also point to different problems. If few people send an invite, check when it appears and whether the reward is clear. If many invite friends but few accept, test the message and page. If installs are high but few friends become active, fix the first useful task.

Start with a small test

Choose at random which eligible users can see the program, and keep a similar group that cannot. Measure new active users for each eligible user, so people who do not send an invite still count. Links shared between the groups can affect the result.

Before you invite real users, test these cases:

  1. The friend already has the app, searches for it, or loses the link.
  2. Two people invite the same friend, or someone claims their own invite.
  3. The useful action is done twice, or after the end date.
  4. A server request repeats, a purchase is refunded, or a reward is already active.
  5. Someone deletes their account while a reward is in review.

Set a spending limit and an end date. When the test ends, compare the cost of each extra active user with the money those users bring in during the same period. Check that they stay, using the same retention rule for both groups. Keep the rewards you already promised, even if you stop the program. If people already want to show what they make in the app, compare this with app viral loops. They work without a reward. Our app growth strategy helps you decide when to add either one.

Questions people ask

What is the difference between a referral program and an affiliate program?

In a referral program, users usually invite people they know and get an app-related reward. An affiliate program pays creators, site owners or other partners to bring customers, often as an ongoing business deal. The line can become unclear if a user with a large audience posts a personal code and earns many rewards. Do not let the word "friend" hide that. Set a limit for normal users, and move large promoters to partner rules that cover payment, disclosure and tax. Use separate records so one purchase cannot earn both a referral reward and a commission.

Can I give a user premium access for referring a friend?

It depends on the store and how you give access. For an Apple subscription, a referral program can use offer codes. Apple also lets you choose who gets a promotional offer, if they have subscribed before. Google can delay the next payment of an active subscription. A custom license key that unlocks digital features on an iPhone breaks Apple's in-app purchase rule. The sources here do not clearly approve free time added by a server for someone with no Apple subscription. Ask Apple about your exact design before you promise it, and test what happens after a refund.

Should both people get a referral reward?

Two rewards can give the new user a reason to accept and thank the person who invited them. They also cost more and can make fake accounts more attractive. You can start with one reward and test the second later. Give each person a reward that matches what they need, such as a useful starter item for the friend and more projects for the inviter. Work out the cost of both before launch. The app should show each person's reward, what is still needed and when it will be checked, without showing private activity.

Can a referral code in an App Store link open the invite after install?

Do not expect a normal App Store link to pass your code into a newly installed app. The invite page should show a short code that the friend can copy, and the app should have a place to enter it. The same page can offer an app link for people who already have the app. On Android, a Google Play link can carry a referrer that your app reads after installation. Keep the manual code there too, because someone can search for the app or change devices. Do not match people by IP address or device details.

How do I stop people from referring themselves?

Use account and purchase rules that people can understand. Block a claim from the same account, set an expiry date and allow one inviter for each new account. Check that the useful action and any purchase belong to the claimed account. Review unusual groups by hand before you refuse a reward, because family members can share a network or payment method. Limit how many rewards an account can earn. Do not secretly fingerprint phones to find matches. Give people a way to appeal, and keep the reason for your decision.

Sources

  1. Apple: App Review Guidelines
  2. Apple Developer: Auto-renewable subscriptions
  3. App Store Connect Help: Set up subscription offer codes
  4. Apple Developer: Set App Account Token
  5. Apple Developer: Extend a Subscription Renewal Date
  6. Google Play Console Help: User ratings, reviews and installs
  7. Google Play Console Help: Understanding the Payments policy
  8. Android Developers: Subscriptions, defer billing
  9. Google Play Console Help: Create promotions
  10. Google Play Console Help: App Promotion policy
  11. Cornell Legal Information Institute: 16 CFR 255.5
  12. Cornell Legal Information Institute: 15 USC 7702
  13. Android Developers: Play Install Referrer Library

Prices and platform rules change. We checked these pages on November 30, 2026.

Keep reading

More guides

Browse by topic

Getting users for your appCloud phones vs real phonesPhone farmsUS accounts from abroadVPNs, proxies and bansClipping and multiple accountsPosting services and phone rentalInstagram for a US audienceRunning the accountsPlaybooks by businessPayout programs and eligibilityAll guides