Skip to content

Instantly share code, notes, and snippets.

@spike1292
Created December 21, 2017 14:31
Show Gist options
  • Save spike1292/de8bd8711d24d38ef8c1ebae441416a8 to your computer and use it in GitHub Desktop.
Save spike1292/de8bd8711d24d38ef8c1ebae441416a8 to your computer and use it in GitHub Desktop.
Adobe marketing cloud example
import * as utils from "tns-core-modules/utils/utils";
function trackOpenURL(url: string): void {
const nsurl = NSURL.URLWithString(url);
const urlWithVisitorData = ADBMobile.visitorAppendToURL(nsurl);
utils.ios.getter(UIApplication, UIApplication.sharedApplication).openURL(urlWithVisitorData);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment