• Home
  • Developer
  • English
    • ไทย
    • English
  • Home
  • Developer
  • English
    • ไทย
    • English
  • Getting Started
    • iOS
    • Android
    • Flutter
  • Api Usage Document
    • Best Practices
      • การใช้งานเข้าสู่ระบบสมาชิก
      • Request Help
      • History Redeem
      • Campaign
        • Campaign Detail
    • REST Buzzebees API reference
      • Overview
    • Developer Tool
      • REST API Explorer

    Android

    Getting Started (Android)

    Buzzebees SDK makes it easy to build apps on your mobile. This gives you easy access to the Buzzebees platform using the REST API.

    Requirements

    • Android SDK Version 23 (Android M) or higher
    • Android kotlin

    The following steps are for adding Buzzebees SDK to your iOS project.

    Integrate the Buzzebees SDK

    Set up your development environment before using Buzzebees SDK for Android.
    Using AzureArtifacts

    • In your project, open your_app > Gradle Scripts > build.gradle (Module: app) and add the following implementation statement to the dependencies{} section to depend on the latest version of the Buzzebees SDK
    implementation(group: 'com.bzbs.sdk', name: 'sdk', version: '1.0.7-3')
    • Add AzureArtifacts in build.gradle (Module : app)
    def azureArtifactsGradleAccessToken="hyvwmlwti67ltwss7kp73oycgpkxl32easfed3zcyas3lsktya3a"repositories {
        maven {
            url ' https://buzzebees.pkgs.visualstudio.com/Buzzebees/_packaging/AndroidBuzzebeesCore2019/maven/v1'
            credentials {
                username "AZURE_ARTIFACTS"
                password System.getenv("AZURE_ARTIFACTS_ENV_ACCESS_TOKEN")
            }
        }
    }

    Edit Your Resources And Manifest

    • Open your /app/res/values/strings.xml file.
    • Add string elements with the names
    • Add string elements with the names app_prefix, app_id, base_api_url, and sub_scription_key your code looks like the following:
    <string name="app_prefix">android_buzzebeesdemo</string>
    <string name="app_id">2952697274802274</string>
    <string name="base_api_url">https://buzzebees-dev.azure-api.net</string>
    <string name="sub_scription_key">638c9e252d4e4b4ab0004a2d42a9d06f</string>
    • AppPrefix, AppId, SubscriptionKey. You can see it at the BackOffice
    • AppPrefix is an application prefix used for app support version
    • AppId is unique identifier of application
    • SubscriptionKey is unique identifier of vendor
    • Add a uses-permission element to the manifest after the application element:
    <uses-permission android:name="android.permission.INTERNET"/>
    • Build your project.

    Initital You SDK

    • Add initial sdk in App.kt
    ServiceUtils.initialBzbsApplication(this
        ,BuildConfig.AA_API_URL_BUZZEBEES
        ,getString(R.string.fb_app_id)
        ,BuildConfig.isProduction
        ,IS_SSL_ENABLED)
    Previous
    iOS
    Next
    Flutter
    • FAQ
    • Help
    • Privacy
    • Copyright 2022 Buzzebees Co.,Ltd. All Rights Reserved