Skip to content

Retry in-app verification before failing#1358

Merged
keeshux merged 12 commits into
masterfrom
bugfix/retry-tunnel-verification
Aug 15, 2025
Merged

Retry in-app verification before failing#1358
keeshux merged 12 commits into
masterfrom
bugfix/retry-tunnel-verification

Conversation

@keeshux

@keeshux keeshux commented May 5, 2025

Copy link
Copy Markdown
Member

StoreKit is unable to report failures and may occasionally return empty products instead. This is a mitigation attempt to avoid "Purchase required" for legit paying users.

Relax tunnel verification parameters:

  • Verify after 2 minutes
  • Repeat verification every 6 hours
  • On failure, retry after 5 minutes
  • Fail verification after 3 failed attempts (2 + 3 * 5 = 17 minutes grace period)

Relax app verification frequency:

  • Do not always reload the receipt on foreground, thus invalidating the current one
  • Invalidate current receipt after 10 minutes

Fixes #1312

@keeshux keeshux self-assigned this May 5, 2025
@keeshux keeshux added bug Something isn't working IAP Related to in-app purchases labels May 5, 2025
@keeshux keeshux added this to the 3.5.0 milestone May 5, 2025
@keeshux keeshux moved this to In Progress in 2025 Q2-Q4 Scaling May 5, 2025
@keeshux keeshux removed the status in 2025 Q2-Q4 Scaling May 5, 2025
@keeshux keeshux moved this to Todo in 2025 Q2-Q4 Scaling May 10, 2025
@keeshux keeshux modified the milestones: 3.5.0, 3.4.0 May 10, 2025
keeshux added 2 commits May 13, 2025 14:38
StoreKit is unable to report failures and may occasionally return
empty products instead. This is a mitigation attempt to avoid
"Purchase required" for legit paying users.
@keeshux keeshux force-pushed the bugfix/retry-tunnel-verification branch from a64374a to d7ecf3e Compare May 13, 2025 12:38
@keeshux keeshux removed their assignment May 19, 2025
@keeshux keeshux modified the milestones: 3.4.0, 3.5.0 May 19, 2025
@keeshux keeshux removed the status in 2025 Q2-Q4 Scaling May 19, 2025
@keeshux keeshux modified the milestone: 3.5.0 May 19, 2025
@keeshux keeshux moved this to Todo in 2025 Q2-Q4 Scaling May 22, 2025
@keeshux keeshux moved this from Todo to In Progress in 2025 Q2-Q4 Scaling May 22, 2025
@keeshux keeshux moved this from In Progress to Todo in 2025 Q2-Q4 Scaling May 25, 2025
@keeshux keeshux removed the status in 2025 Q2-Q4 Scaling Jun 3, 2025
@keeshux keeshux removed this from the 3.5.0 milestone Jun 3, 2025
@keeshux

keeshux commented Jun 6, 2025

Copy link
Copy Markdown
Member Author

Observations:

  • Raise verification interval to 1 day maybe
  • Graceful period after first failure
    • First verification after 2 minutes
    • Retry 3 times
      • After 1/2/5 minutes (8 total grace)
      • Change alert to say (delay + grace) minutes = 2 + 8 (not just delay)

@keeshux keeshux moved this to Todo in 2025 Q2-Q4 Scaling Jun 13, 2025
@keeshux keeshux removed the status in 2025 Q2-Q4 Scaling Jul 2, 2025
@keeshux keeshux moved this to Todo in 2025 Q2-Q4 Scaling Jul 10, 2025
@keeshux keeshux removed the status in 2025 Q2-Q4 Scaling Jul 11, 2025
@keeshux keeshux moved this to Todo in 2025 Q2-Q4 Scaling Aug 9, 2025
@keeshux keeshux moved this from Todo to In Progress in 2025 Q2-Q4 Scaling Aug 9, 2025
@keeshux keeshux added this to the 3.6.0 milestone Aug 14, 2025
@keeshux keeshux self-assigned this Aug 14, 2025
- Verify after 2 minutes
- Repeat verification every 6 hours
- On failure, retry after 5 minutes
@keeshux keeshux marked this pull request as ready for review August 15, 2025 07:34
@keeshux keeshux changed the title Retry in-app verification 3 times before failing Retry in-app verification before failing Aug 15, 2025
@keeshux keeshux marked this pull request as draft August 15, 2025 08:42
@keeshux keeshux force-pushed the bugfix/retry-tunnel-verification branch from e88648b to cd469ab Compare August 15, 2025 13:17
@keeshux keeshux force-pushed the bugfix/retry-tunnel-verification branch from cd469ab to 7b6ad3b Compare August 15, 2025 13:18
@keeshux keeshux marked this pull request as ready for review August 15, 2025 13:25
@keeshux keeshux merged commit 9e547ea into master Aug 15, 2025
@keeshux keeshux deleted the bugfix/retry-tunnel-verification branch August 15, 2025 13:28
@keeshux keeshux moved this from In Progress to Done in 2025 Q2-Q4 Scaling Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working IAP Related to in-app purchases

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Annoying occurrences of "Purchase required"

1 participant