InappifySdkWeb class
Browser plugin entry backed by the official Inappify JavaScript SDK.
The adapter becomes eligible during capability negotiation only when the host page has installed the documented ESM bridge before Flutter starts. Otherwise the process uses the complete Dart fallback for the full session.
- Inheritance
-
- Object
- PlatformInterface
- InappifySdkPlatform
- InappifySdkWeb
Constructors
- InappifySdkWeb({InappifyWebBridge? bridge})
- Creates the browser platform candidate.
Properties
-
events
→ Stream<
InappifyPlatformEvent> -
Stream for redirect callbacks and out-of-band native SDK changes.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
httpTraces
→ Stream<
InappifyHttpTrace> -
Mobile-only, filtered diagnostics; subscriptions opt in to tracing.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canSetReservedAttribute(
InappifyReservedAttributeCapabilityRequest request) → Future< InappifySdkResult< bool> > -
Reports whether the browser or native allowlist permits a reserved key.
inherited
-
checkEntitlement(
InappifyEntitlementCheckRequest request) → Future< InappifySdkResult< bool> > -
Checks an entitlement, optionally refreshing customer information first.
inherited
-
configure(
InappifyConfigureRequest request) → Future< InappifySdkResult< void> > -
Configures the selected backend and returns its authoritative snapshot.
inherited
-
confirmDelivery(
int deliveryId) → Future< InappifySdkResult< PurchaseResult> > -
Host must have durably granted this delivery once before calling.
inherited
-
createCheckout(
InappifyPurchaseRequest request) → Future< InappifySdkResult< InappifyCheckoutResult> > -
Creates a checkout without allowing the backend to navigate the page.
inherited
-
createOtpCaptcha(
InappifyNetworkRequest request) → Future< InappifySdkResult< InappifyCaptchaChallenge> > -
Creates an explicit CAPTCHA challenge for an OTP request.
inherited
-
customerInfoWithPolicy(
InappifyFetchPolicy policy) → Future< InappifySdkResult< CustomerInfo> > -
inherited
-
deleteAttributes(
InappifyDeleteAttributesRequest request) → Future< InappifySdkResult< List< >Attribute> > -
Deletes custom attributes by key.
inherited
-
dispose(
) → Future< void> -
Releases bridge listeners. Production registration owns this adapter for
the page lifetime; this method exists for deterministic browser tests.
inherited
-
exchangeIdentityTicket(
InappifyIdentityTicketRequest request) → Future< InappifySdkResult< InappifyAuthenticationResult> > -
Exchanges a short-lived, single-use Identity Ticket.
inherited
-
flushAttributes(
) → Future< InappifySdkResult< void> > -
inherited
-
getAppVersionInfo(
) → Future< InappifyAppVersionInfo?> -
Returns host application version information when available.
inherited
-
getCapabilities(
) → Future< InappifyBackendCapabilities> -
Reports whether this adapter can own a complete SDK session.
inherited
-
getCheckoutStatus(
InappifyCheckoutStatusRequest request) → Future< InappifySdkResult< InappifyCheckoutResult> > -
Reads one authoritative checkout status.
inherited
-
getConfiguration(
) → Future< InappifySdkResult< InappifyConfiguration> > -
Returns token-free capabilities and allowlists for the active backend.
inherited
-
getCurrentOffering(
InappifyCurrentOfferingRequest request) → Future< InappifySdkResult< OfferingModel> > -
Resolves the current offering using backend-owned rules and placement.
inherited
-
getCustomerInfo(
InappifyRefreshRequest request) → Future< InappifySdkResult< CustomerInfo> > -
Refreshes customer information from the backend that owns the session.
inherited
-
getOffering(
String identifier) → Future< InappifySdkResult< OfferingModel> > -
inherited
-
getOfferings(
InappifyRefreshRequest request) → Future< InappifySdkResult< OfferingsModel> > -
Refreshes offerings from the backend that owns the session.
inherited
-
getPendingCheckoutId(
) → Future< InappifySdkResult< String> > -
Returns the non-secret checkout id retained for a browser redirect.
inherited
-
getPlatformVersion(
) → Future< String?> -
Returns a String containing the version of the platform.
override
-
getPurchaseAttempt(
String attemptId) → Future< InappifySdkResult< InappifyPurchaseAttempt> > -
inherited
-
getPurchaseAttempts(
) → Future< InappifySdkResult< List< >InappifyPurchaseAttempt> > -
inherited
-
handleDeepLink(
String url) → Future< InappifySdkResult< bool> > -
inherited
-
handlePaymentReturn(
InappifyPaymentReturnRequest request) → Future< InappifySdkResult< InappifyCheckoutResult> > -
Polls authoritative checkout state after a browser payment return.
inherited
-
isPaymentUrlAllowed(
String url) → Future< InappifySdkResult< bool> > -
inherited
-
login(
InappifyLoginRequest request) → Future< InappifySdkResult< void> > -
Changes the customer identity owned by the selected backend.
inherited
-
logout(
) → Future< InappifySdkResult< void> > -
Ends the current customer session.
inherited
-
logoutWithRequest(
InappifyNetworkRequest request) → Future< InappifySdkResult< void> > -
Cancellation-aware logout used by browser backends.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
offeringsWithPolicy(
InappifyFetchPolicy policy) → Future< InappifySdkResult< OfferingsModel> > -
inherited
-
purchase(
InappifyPurchaseRequest request) → Future< InappifySdkResult< PurchaseResult> > -
Starts a purchase after configuration.
inherited
-
queueAttributes(
Map< String, String?> values) → Future<InappifySdkResult< void> > -
inherited
-
requestOtp(
InappifyOtpRequest request) → Future< InappifySdkResult< InappifyOtpChallenge> > -
Creates an OTP authentication challenge.
inherited
-
restoreCachedSession(
InappifyConfigureRequest request) → Future< InappifySdkResult< bool> > -
Reads a matching mobile session without network access. A false result is
a cache miss, never permission to reuse a different customer's snapshot.
inherited
-
restoreStorePurchases(
) → Future< InappifySdkResult< InappifyRestoreResult> > -
inherited
-
setAttributes(
InappifyAttributesRequest request) → Future< InappifySdkResult< List< >Attribute> > -
Stores or removes custom customer attributes.
inherited
-
setConsumableDeliveryHandler(
InappifyConsumableDeliveryHandler? handler) → Future< InappifySdkResult< void> > -
inherited
-
setNetworkEnabled(
bool enabled) → Future< InappifySdkResult< void> > -
inherited
-
setReservedAttribute(
InappifyReservedAttributeRequest request) → Future< InappifySdkResult< void> > -
Stores a reserved customer attribute.
inherited
-
setTargetingContext(
InappifyTargetingContextRequest request) → Future< InappifySdkResult< void> > -
Updates runtime country or app-version targeting inputs.
inherited
-
syncAttributes(
) → Future< InappifySdkResult< List< >Attribute> > -
Synchronizes the complete attribute set for the active customer.
inherited
-
syncAttributesAndOfferingsIfNeeded(
) → Future< InappifySdkResult< OfferingsModel> > -
inherited
-
syncAttributeValues(
InappifyAttributesRequest request) → Future< InappifySdkResult< List< >Attribute> > -
Synchronizes an explicit attribute list for the active customer.
inherited
-
synchronizeCompatibilityState(
InappifySdkSnapshot snapshot) → void -
Synchronizes legacy mutable façade fields before a Dart fallback call.
inherited
-
syncPendingConsumables(
) → Future< InappifySdkResult< InappifyConsumableSyncResult> > -
inherited
-
syncStorePurchases(
) → Future< InappifySdkResult< List< >PurchaseResult> > -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validateDiscountCode(
InappifyDiscountCodeRequest request) → Future< InappifySdkResult< ValidateDiscountCodeData> > -
Validates a discount code for the active customer.
inherited
-
verifyOtp(
InappifyOtpVerificationRequest request) → Future< InappifySdkResult< InappifyAuthenticationResult> > -
Verifies an OTP challenge and updates the authoritative session.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
Registrar registrar) → void - Registers the browser candidate with Flutter's plugin registrar.