{"id":16216712,"url":"https://github.com/skyost/flutterfundingchoices","last_synced_at":"2025-03-19T10:30:35.957Z","repository":{"id":45853539,"uuid":"294968910","full_name":"Skyost/FlutterFundingChoices","owner":"Skyost","description":"The Flutter implementation of Funding Choices, a Google service that allows to request user consent for personalized ads in AdMob.","archived":false,"fork":false,"pushed_at":"2023-12-28T11:36:17.000Z","size":301,"stargazers_count":8,"open_issues_count":2,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-28T17:51:00.559Z","etag":null,"topics":["admob","ads","dart","flutter","funding-choices"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_funding_choices","language":"Dart","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/Skyost.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"Skyost","patreon":null,"open_collective":null,"ko_fi":"Skyost","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["paypal.me/Skyost"]}},"created_at":"2020-09-12T15:17:02.000Z","updated_at":"2023-10-13T21:03:37.000Z","dependencies_parsed_at":"2023-12-28T12:48:21.159Z","dependency_job_id":"fbdf7a95-3955-44dd-adc3-1a1292715a30","html_url":"https://github.com/Skyost/FlutterFundingChoices","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skyost%2FFlutterFundingChoices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skyost%2FFlutterFundingChoices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skyost%2FFlutterFundingChoices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skyost%2FFlutterFundingChoices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Skyost","download_url":"https://codeload.github.com/Skyost/FlutterFundingChoices/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243982177,"owners_count":20378604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["admob","ads","dart","flutter","funding-choices"],"created_at":"2024-10-10T11:21:49.564Z","updated_at":"2025-03-19T10:30:35.491Z","avatar_url":"https://github.com/Skyost.png","language":"Dart","funding_links":["https://github.com/sponsors/Skyost","https://ko-fi.com/Skyost","paypal.me/Skyost","https://paypal.me/Skyost"],"categories":[],"sub_categories":[],"readme":"# Flutter Funding Choices\n\n_Flutter Funding Choices_ is an unofficial Flutter implementation of Funding Choices,\na Google service that allows to request user consent for personalized ads in AdMob.\n\n\u003cimg src=\"https://github.com/Skyost/FlutterFundingChoices/raw/master/screenshots/android.png\" height=\"500\"\u003e\n\n## Prerequisites\n\nYou must have linked your FundingChoices account to your Admob account.\nSee [this documentation](https://support.google.com/fundingchoices/answer/9180084) on Google Support.\n\n## Installation\n\n### Android\n\nYour app must use [Android Embedding V2](https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects).\nAlso, you need to add an app id in your `AndroidManifest.xml` (in the `application` tag) :\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cmanifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n   package=\"fr.skyost.example\"\u003e\n\n   \u003capplication\n       \u003c!--\n         Some attributes here...\n        --\u003e\n    \u003e\n       \u003cmeta-data\n           android:name=\"com.google.android.gms.ads.APPLICATION_ID\"\n           android:value=\"YOUR-APP-ID\"/\u003e\n       \u003c!--\n         Activities, ...\n        --\u003e\n   \u003c/application\u003e\n\n\u003c/manifest\u003e\n```\n\nYou can obtain your app ID by following [these instructions](https://support.google.com/admob/answer/7356431).\n\n### iOS\n\nYou need to add an app id in your `Info.plist` :\n\n```xml\n\u003ckey\u003eGADApplicationIdentifier\u003c/key\u003e\n\u003cstring\u003eYOUR-APP-ID\u003c/string\u003e\n```\n\nYou can obtain your app ID by following [these instructions](https://support.google.com/admob/answer/7356431).\nYou may also need to handle Apple's App Tracking Transparency message by putting this in your `Info.plist` :\n\n```xml\n\u003ckey\u003eNSUserTrackingUsageDescription\u003c/key\u003e\n\u003cstring\u003eThis identifier will be used to deliver personalized ads to you.\u003c/string\u003e\n```\n\nFeel free to configure the message as you want.\n\n## How to use\n\nThere are three methods :\n\n* `FlutterFundingChoices.requestConsentInformation()` : Allows to get current user consent information (whether you need to show the consent form, whether the user wants personalized ads, ...).\n* `FlutterFundingChoices.showConsentForm()` : Loads and shows the consent form. You must check first that there is a consent form (with `isConsentFormAvailable` on the returned object of the previous method).\n* `FlutterFundingChoices.reset()` : Resets the consent information.\n\nYou typically want to use it like this on Android :\n\n```dart\n@override\nvoid initState() {\n  super.initState();\n  WidgetsBinding.instance.addPostFrameCallback((_) async {\n    ConsentInformation consentInfo = await FlutterFundingChoices.requestConsentInformation();\n    if (consentInfo.isConsentFormAvailable \u0026\u0026 consentInfo.consentStatus == ConsentStatus.required) {  \n      await FlutterFundingChoices.showConsentForm();\n      // You can check the result by calling `FlutterFundingChoices.requestConsentInformation()` again !\n    }\n  });\n}\n```\n\n## Contributions\n\nYou have a lot of options to contribute to this project ! You can :\n\n* [Fork it](https://github.com/Skyost/FlutterFundingChoices/fork) on Github.\n* [Submit](https://github.com/Skyost/FlutterFundingChoices/issues/new/choose) a feature request or a bug report.\n* [Donate](https://paypal.me/Skyost) to the developer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyost%2Fflutterfundingchoices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyost%2Fflutterfundingchoices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyost%2Fflutterfundingchoices/lists"}