Skip to content

fix: restore Pro purchases after Firebase login#36

Merged
wizzomafizzo merged 1 commit intomainfrom
fix/pro-license-restore-purchases
Feb 5, 2026
Merged

fix: restore Pro purchases after Firebase login#36
wizzomafizzo merged 1 commit intomainfrom
fix/pro-license-restore-purchases

Conversation

@wizzomafizzo
Copy link
Member

Summary

  • Auto-restore purchases after Firebase login to transfer orphaned purchases from anonymous RevenueCat user
  • Show "No purchases found" toast when restore succeeds but no entitlement exists (previously silent)
  • Add optional chaining to prevent crashes when entitlements object is undefined/malformed

Fixes Android users reporting Pro license showing as "not active" after v1.10.1 when they purchased Pro before logging into their Zaparoo account.

…eedback

When a user logs into their Zaparoo/Firebase account, RevenueCat switches to
a customer profile for that Firebase UID. If the user purchased Pro before
logging in, the purchase remains orphaned on the anonymous RevenueCat user.

This fix:
- Auto-restores purchases after Firebase login to transfer orphaned purchases
- Shows "No purchases found" toast when restore succeeds but no entitlement exists
- Adds optional chaining to prevent crashes when entitlements object is malformed
@codecov
Copy link

codecov bot commented Feb 5, 2026

Codecov Report

❌ Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/App.tsx 75.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@wizzomafizzo wizzomafizzo merged commit abdc5b8 into main Feb 5, 2026
2 checks passed
@wizzomafizzo wizzomafizzo deleted the fix/pro-license-restore-purchases branch February 5, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant