Skip to content

Commit ea9766c

Browse files
committed
fix(rokt): limit selectShoppableAds support to iOS
Remove the web selectShoppableAds bridge call and document platform behavior so the API remains explicitly iOS-only for now. Made-with: Cursor
1 parent 370428c commit ea9766c

2 files changed

Lines changed: 4 additions & 14 deletions

File tree

lib/mparticle_flutter_sdk.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,10 @@ class Rokt {
333333

334334
/// Selects shoppable ads with a [identifier], optional [attributes], and optional [roktConfig].
335335
///
336-
/// This method currently has native implementation on iOS.
337-
/// Android keeps a no-op bridge for cross-platform API compatibility.
336+
/// This method is currently implemented only on iOS.
337+
///
338+
/// Android keeps a no-op bridge for API compatibility, and web does not
339+
/// implement this method yet.
338340
Future<void> selectShoppableAds({
339341
required String identifier,
340342
Map<String, dynamic>? attributes,

lib/mparticle_flutter_sdk_web.dart

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -536,18 +536,6 @@ class MparticleFlutterSdkWeb {
536536
})
537537
]);
538538
break;
539-
case 'roktSelectShoppableAds':
540-
final mpRokt = JsObject.fromBrowserObject(context['mParticle']['Rokt']);
541-
final placementId = call.arguments['placementId'];
542-
final attributes = call.arguments['attributes'] ?? {};
543-
544-
mpRokt.callMethod('selectShoppableAds', [
545-
JsObject.jsify({
546-
'identifier': placementId,
547-
'attributes': attributes
548-
})
549-
]);
550-
break;
551539
default:
552540
throw PlatformException(
553541
code: 'Unimplemented',

0 commit comments

Comments
 (0)