{"id":21478310,"url":"https://github.com/appsflyersdk/appsflyer-html5-ctv-sdk","last_synced_at":"2026-02-01T12:03:45.093Z","repository":{"id":64781389,"uuid":"578163713","full_name":"AppsFlyerSDK/appsflyer-html5-ctv-sdk","owner":"AppsFlyerSDK","description":"AppsFlyer SDK for TV application","archived":false,"fork":false,"pushed_at":"2024-09-02T07:21:37.000Z","size":1452,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-15T22:02:39.010Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AppsFlyerSDK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-14T12:08:41.000Z","updated_at":"2025-03-10T07:28:53.000Z","dependencies_parsed_at":"2025-07-15T11:34:00.592Z","dependency_job_id":"63fea8ec-554a-46e9-97ab-4bd344a2a9ea","html_url":"https://github.com/AppsFlyerSDK/appsflyer-html5-ctv-sdk","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/AppsFlyerSDK/appsflyer-html5-ctv-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppsFlyerSDK%2Fappsflyer-html5-ctv-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppsFlyerSDK%2Fappsflyer-html5-ctv-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppsFlyerSDK%2Fappsflyer-html5-ctv-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppsFlyerSDK%2Fappsflyer-html5-ctv-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AppsFlyerSDK","download_url":"https://codeload.github.com/AppsFlyerSDK/appsflyer-html5-ctv-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppsFlyerSDK%2Fappsflyer-html5-ctv-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28977663,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T11:31:13.034Z","status":"ssl_error","status_checked_at":"2026-02-01T11:30:25.558Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-23T11:17:38.797Z","updated_at":"2026-02-01T12:03:45.075Z","avatar_url":"https://github.com/AppsFlyerSDK.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/AppsFlyerSDK/AppsFlyerSDK-appsflyer-html5-ctv-sdk/main/images/CTV.png?raw=true\"  width=\"400\" \u003e \n\n# appsflyer-html5-ctv-sdk\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![npm version](https://badge.fury.io/js/appsflyer-html5-ctv-sdk.svg)](https://badge.fury.io/js/appsflyer-html5-ctv-sdk)\n[![Downloads](https://img.shields.io/npm/dm/appsflyer-html5-ctv-sdk.svg)](https://www.npmjs.com/package/appsflyer-html5-ctv-sdk)\n\n🛠 In order for us to provide optimal support, we would kindly ask you to submit any issues to support@appsflyer.com\n\n\u003e *When submitting an issue please specify your AppsFlyer sign-up (account) email , your app ID , production steps, logs, code snippets and any additional relevant information.*\n\n### \u003ca id=\"plugin-build-for\"\u003e This SDK is built for\n\n- \u003cimg src=\"https://github.com/AppsFlyerSDK/AppsFlyerSDK-appsflyer-html5-ctv-sdk/blob/main/images/tizen.png?raw=true\" alt=\"drawing\" width=\"15\"/\u003e Samsung (Tizen 4 \u0026 above)\n- \u003cimg src=\"https://github.com/AppsFlyerSDK/AppsFlyerSDK-appsflyer-html5-ctv-sdk/blob/main/images/lg.png?raw=true\" alt=\"drawing\" width=\"15\"/\u003e LG (Webos 4 \u0026 above)\n- Other platforms (See example for VIZIO (Smartcast) Vidaa (vidaaOS) in the [following implementation guide](/docs/other-platforms.md))\n\n\n ##  📖 Guides\n- [Adding the SDK to your project](#installation)\n    - [Yarn](#yarn)\n    - [appsflyerSdk.bundle.js](#bundle)\n- [Platforms dependency](#platform-dependency)\n    - [Samsung](#samsung)\n    - [LG](#lg)\n    - [Other platforms](/docs/other-platforms.md)\n- [Basic implemantation of the SDK](#integration)\n- [API](/docs/api.md)\n    - [AppsFlyerSDK initialization](/docs/api.md#newAppsflyerSdk)\n    - [Start](/docs/api.md#start)\n    - [In-app events](/docs/api.md#inappevents)\n    - [Set custom payload](/docs/api.md#setCustomPayload)\n    - [Set customer user Id](/docs/api.md#setCustomerUserId)\n    - [Init (Deprecated!)](/docs/api.md#init)\n- [Testing the integration](/docs/testing.md)\n    - [Logs](/docs/testing.md#logs)\n    - [Response codes](/docs/testing.md#response-codes)\n    - [Sample App](/docs/testing.md#demo)\n\n\n#\n\n\n## \u003ca id=\"installation\"\u003e Adding the SDK to your project\n\n\n### \u003ca id=\"yarn\"\u003e Yarn\n\n**Please make sure to use npm v16.16.0/yarn v1.21.0 and above!**\n  \n```\n$ yarn add appsflyer-html5-ctv-sdk\n```\n\n### \u003ca id=\"bundle\"\u003e appsflyerSdk.bundle.js\n\nDownload the appsflyerSdk.bundle.js file from [here](dist/appsflyerSdk.bundle.js), and add it to your index.html file header:\n\n```\n\u003cscript src=\"[bundle-js-location]\"\u003e\u003c/script\u003e\n```\n\n## \u003ca id=\"platform-dependency\"\u003e Platform dependency\n\nIn order for the SDK to fetch device data from the relevant platform, make sure to follow the following instructions:\n\n\n### \u003ca id=\"samsung\"\u003e Samsung\n\n1. Add the following script to your index.html file:\n\n```\n\u003cscript type=\"text/javascript\" src=\"$WEBAPIS/webapis/webapis.js\"\u003e\u003c/script\u003e\n```\n\n2. Add the following dependecies through Tizen studio:\n\n```\n\u003ctizen:privilege name=\"http://tizen.org/privilege/internet\"/\u003e\n\u003ctizen:privilege name=\"http://developer.samsung.com/privilege/productinfo\"/\u003e\n\u003ctizen:privilege name=\"http://developer.samsung.com/privilege/adinfo\"/\u003e\n```\n\n### \u003ca id=\"lg\"\u003e LG\n\n1. Download the [webOSTVjs](https://webostv.developer.lge.com/develop/references/webostvjs-introduction) to your project.\n\n2. Add the following script to your index.html file:\n```\n\u003cscript type=\"text/javascript\" src=\"[webOSTVjs-1.2.4-directory]\"\u003e\u003c/script\u003e\n```\n\n### \u003ca id=\"other\"\u003e Other platforms (VIDAA/VIZIO)\n For VIDAA/VIZIO Please follow [this guide](/docs/other-platforms.md)\n \n ## \u003ca id=\"integration\"\u003e 🚀 Basic implemantation of the SDK\n\nInitialize the SDK to enable AppsFlyer to detect installations, sessions (app opens) and updates.\u003cbr\u003e\n\n```javascript\nimport AppsFlyerSDK from 'appsflyer-html5-ctv-sdk'\n\nlet appsflyer;\nlet config = {\n    devKey: \"RxutGo4bSB9MKkM7bMCjHP\",\n    appId: \"3202204027284\",\n    isDebug: true, \n    isSandbox: false\n}\n\ntry{\n    appsflyer = await new AppsFlyerSDK(config);\n}catch(e){\n    console.log(\"AppsFlyerSDK initialization failed. Error \" + e);\n}  \n\ntry{\n    let response = await appsflyer.start();\n    console.log(\"start API response success: \" + JSON.stringify(response));\n}catch(err){\n    console.log(\"start API response err: \" + JSON.stringify(err));\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappsflyersdk%2Fappsflyer-html5-ctv-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappsflyersdk%2Fappsflyer-html5-ctv-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappsflyersdk%2Fappsflyer-html5-ctv-sdk/lists"}