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.36k stars 319 forks source link

Use newer Alert API for showing customer restored alert #4078

Closed MarkVillacampa closed 3 months ago

MarkVillacampa commented 3 months ago

This was causing issues for some developers, because the old, deprecated Alert API would fail silently if there was a view higher up in the view hierarchy which already had an Alert modifier

This in turn caused the onRestoreCompleted callback not to be called.

https://community.revenuecat.com/sdks-51/restore-completion-handlers-not-firing-in-presentpaywallifneeded-4674

The newer Alert API seems to not suffer from the same issue.

Checklist

Motivation

Description