Configure the Native Android SDK
The BFG SDK config file, bfg_config.json, provides the basic settings that will be used during the launch of your game. In addition, it enables optional features within your game and configures settings that are specific to the BFG SDK.
The config file, bfg_config.json must be located in the /src/main/res/raw folder in the exported Android Studio project.
The config file, bfg_config.json is required for the BFG SDK to function. If the BFG SDK cannot find the file, then your game will crash on startup.
JSON Structure
The config file, bfg_config.json is a JSON file broken down into sections based on their configuration area:
Section Name | Required / Optional | Description |
---|---|---|
core | Required | Settings that identify, set up and configure the game |
rave | Required | Settings that configure identity and authentication using Rave |
tacklebox_marketing | Optional | Settings used to integrate our TackleBox marketing platform NOTE: Please use this for backwards compatibility only. Newer apps should use Leanplum and/or brainCloud for Marketing functionality. |
user_authentication | Optional | Settings for optional features related to user authentication |
appsflyer | Optional | Settings for AppsFlyer install attribution |
gdpr | Optional | Settings for testing GDPR and other policies |
zendesk | Optional | Settings to configure the Zendesk help center |
debugging | Optional | Settings that enable various SDK debug features |
Required Sections
These sections must be included in the config file of every game using the BFG SDK, otherwise, it will crash upon initialization.
Core
Rave
Optional Settings
The following sections are optional, and you only need to include them if you are using their features in your game.
User Authentication
AppsFlyer
GDPR
Zendesk
Debugging
Tacklebox Marketing
Sample Config
Here is a sample bfg_config.json file for an Android app. Depending on your game's platform, features, and requirements, your config file may look different. Do not reuse the various IDs listed here for your own game.
{
"debugging": {
"log_json_report": true
},
"tacklebox_marketing": {
"game_service_identifier": "sdkgooglef2p"
},
"core": {
"app_name": "bfgSampleApps",
"app_store": "google",
"custom_events_enabled": true
},
"user_authentication": {
"welcome_toast_enabled": true,
"rave_adk_enabled": false
},
"appsflyer": {
"is_enabled": true
},
"gdpr": {
"use_sample_policies": false
},
"zendesk": {
"is_enabled": true,
"zendesk_url": "https://bigfishgames.zendesk.com",
"zendesk_app_identifier": "384b2170a8d96d8d1e93bab81e9415a2b59a7aa107185f8b"
},
"rave": {
"RaveSettings.General.ApplicationID": "1ab1efeebeff4089932754eed47eb75a",
"RaveSettings.Facebook.ApplicationId": "1814101732242418",
"BigFishSettings.Android.GoogleLoginEnabled": true,
"RaveSettings.Google.ClientID": "24660947848-d92jdk15qaot2vaa7khjms8c23jjjb0k.apps.googleusercontent.com"
}
}