RevenueCat / purchases-ios

In-app purchases and subscriptions made easy. Support for iOS, watchOS, tvOS, macOS, and visionOS.
https://www.revenuecat.com/
MIT License
2.37k stars 319 forks source link

Tapping on 'Restore purchase' while not having subscription doesn't show an informing popup #4420

Closed ArmenZoom closed 2 weeks ago

ArmenZoom commented 1 month ago

Describe the bug When user doesn’t have a subscription, tapping on ‘Restore Purchase' button should show a popup informing that user has no active subscription to restore.

  1. Environment
    1. Platform: IOS
    2. SDK version: 5.7.0
    3. StoreKit version:
      • [x] StoreKit 1 (default on versions <5.0.0. Can be enabled in versions >=5.0.0 with .with(storeKitVersion: .storeKit1))
      • [] StoreKit 2 (default on versions >=5.0.0)
    4. OS version: 18.0.1
    5. Xcode version: 16.0
    6. Device and/or simulator:
      • [x] Device
      • [ ] Simulator
    7. Environment:
      • [x] Sandbox
      • [x] TestFlight
      • [x] Production
    8. How widespread is the issue. Percentage of devices affected.
  2. Debug logs that reproduce the issue. Complete logs with Purchases.logLevel = .verbose will help us debug this issue.
Logs here
  1. Steps to reproduce, with a description of expected vs. actual behavior
    1. Open the app without subscription.
    2. On the paywall, tap on ‘Restore purchases’ button.
    3. Observe nothing is displayed to user.
RCGitBot commented 1 month ago

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

HaleyRevcat commented 1 month ago

Hi, thank you for the feedback. At this time restoring purchases will not return a specific popup for when the user has no purchases to restore but I will pass this along to the team as feedback.