Skip to content

Add App Store purchase restriction methods#21

Open
NoodleOfDeath wants to merge 3 commits into
mainfrom
feature/app-store-purchase-restrictions
Open

Add App Store purchase restriction methods#21
NoodleOfDeath wants to merge 3 commits into
mainfrom
feature/app-store-purchase-restrictions

Conversation

@NoodleOfDeath

Copy link
Copy Markdown
Owner

Expose deny/allow controls for in-app purchases and a setter for requiring a password for purchases, mapping to the iOS ManagedSettings appStore properties (denyInAppPurchases, requirePasswordForPurchases). The current values remain readable via getStore().

  • iOS: write store.appStore.denyInAppPurchases / requirePasswordForPurchases
  • Android: persist flag state via SharedPreferences (no OS-level enforcement available for a regular app)
  • Document the new methods and note iOS-only enforcement in the README

NoodleOfDeath and others added 3 commits June 22, 2026 09:47
Expose deny/allow controls for in-app purchases and a setter for
requiring a password for purchases, mapping to the iOS ManagedSettings
appStore properties (denyInAppPurchases, requirePasswordForPurchases).
The current values remain readable via getStore().

- iOS: write store.appStore.denyInAppPurchases / requirePasswordForPurchases
- Android: persist flag state via SharedPreferences (no OS-level
  enforcement available for a regular app)
- Document the new methods and note iOS-only enforcement in the README

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Apple's AppStoreSettings only exposes denyInAppPurchases and
requirePasswordForPurchases (both Bool?), with no allow* counterpart.

- denyInAppPurchases now takes a boolean matching the iOS property
- allowInAppPurchases is deprecated (kept as a backwards-compatible
  alias for denyInAppPurchases(false))
- Document in JSDoc and JavaDoc that in-app purchase blocking and
  password-for-purchase are not supported on Android (no OS-level API)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Apple's ApplicationSettings exposes denyAppInstallation and
denyAppRemoval (both Bool?) with no allow* counterpart, mirroring the
AppStoreSettings change.

- denyAppInstallation / denyAppRemoval now take a boolean matching the
  iOS properties
- allowAppInstallation / allowAppRemoval are deprecated (kept as
  backwards-compatible aliases for deny*(false))

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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