idxdmp

Last updated:

0 purchases

idxdmp Image
idxdmp Images
Add to Cart

Description:

idxdmp

idxdmp #
IDX DMP flutter SDK
App configuration #
Add new key and value to Info.plist file
<key>NSUserTrackingUsageDescription</key>
<string>It makes our adwords more compatibility with your interests</string>
copied to clipboard
Getting Started with base sdk #
import 'package:idxdmp/idxdmp.dart';

Future<void> run() async {
var idxdmpPlugin = Idxdmp();

try {
var dmpIsInit = await idxdmpPlugin.initSdk('PROVIDER_ID', 'My flutter app', '1.0.0') ?? false;

if (dmpIsInit) {
await idxdmpPlugin.sendEvent(<String, String>{
"url": "your-page-url",
"title": "Page title",
"domain": "your-site-domain",
"author": "Article authour",
"category": "Article category",
"description": "Article description",
"tags": "Article tag1, Article tag 2"
});

var customParameters = await _idxdmpPlugin.getCustomAdTargeting(); // Map<String, String>
}
} on PlatformException {
}
}
copied to clipboard
Getting Started with Web view connector #
import 'package:webview_flutter/webview_flutter.dart'
import 'package:idxdmp/idxdmp.dart';

Future<void> run() async {
try {
var webViewController = WebViewController()
..setJavaScriptMode(JavaScriptMode.unrestricted)

var connector = DMPWebViewConnector(webViewController, 'My flutter app', '1.0.0')

await webViewController.loadRequest(Uri.parse("YOUR-SITE-LINK"));

var customParameters = await connector.getCustomAdTargeting(); // Map<String, String>
} on PlatformException {
}
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.