![]() ![]() In the case of Google Advertising ID, please make sure that you have Google Play services 4.0+ included into your project. ![]() In the case of OpenUDID you'll need to include following declaration into your AndroidManifest.xml: Or, you can use OpenUDID: Countly.sharedInstance().init(this, " "YOUR_APP_KEY", null, _UDID)įor all of those different approaches, Countly.sharedInstance().init(.) method should be called from your Application subclass (preferred), or from your main activity onCreate method. Countly.sharedInstance().init(this, " "YOUR_APP_KEY", null, _ID) Third, you can rely on Google Advertising ID for device ID generation. Second, you can specify device ID by yourself if you have one (it has to be unique per device): Countly.sharedInstance().init(this, " "YOUR_APP_KEY", "YOUR_DEVICE_ID") ![]() If you use Countly Lite and Countly Enterprise, use your own domain name or IP address like or (if SSL is setup). Basically the domain you are accessing your trial dashboard from. If you are using Countly Enterprise trial servers use, or. Which server/host should I use inside SDK? ![]() Countly.sharedInstance().init(this, " "YOUR_APP_KEY") Starting from the version 16.12.03, the SDK will erase the trailing "/" and write a warning to the log. Do not put a trailing "/" at the end of the server URL or it won't work. There are several options defined below:įirst and easiest method is, if you want Countly SDK to take care of device ID seamlessly, use line below. ComponentĬountly-sdk-android/sdk/src/main/java/ly/count/android/sdkĬountly-sdk-android/sdk/src/main/java/org/openudidįirst, you'll need to decide which device ID generation strategy to use. You can provide values for your custom event, or user profile, or just start with basic integration and this service will generate necessary code for you to use in your favorite IDE (e.g Android Studio). Countly Code Generator can be used to generate SDK custom code snippets easily and fast. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |