MCPcopy Create free account
hub / github.com/dailydotdev/apps / iOSSupportsPlusPurchase

Function iOSSupportsPlusPurchase

packages/shared/src/lib/ios.ts:36–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 !!(globalThis as IOSWebkitGlobal)?.webkit?.messageHandlers?.[handler];
35
36export const iOSSupportsPlusPurchase = (): boolean =>
37 isIOSNative() &&
38 messageHandlerExists(WebKitMessageHandlers.IAPSubscriptionRequest);
39
40export const iOSSupportsCoresPurchase = (): boolean =>
41 isIOSNative() && messageHandlerExists(WebKitMessageHandlers.IAPCoresPurchase);

Callers 4

PlusIOSFunction · 0.90
PlusCardFunction · 0.90
StoreKitSubProviderFunction · 0.90
PaymentContextProviderFunction · 0.90

Calls 2

isIOSNativeFunction · 0.90
messageHandlerExistsFunction · 0.85

Tested by

no test coverage detected