IBM Bluemix Mobile Services - Client SDK Android Analytics

This is the analytics component of the Android SDK for IBM Bluemix Mobile Services.

License

License

Categories

Categories

CLI User Interface ORM Data
GroupId

GroupId

com.ibm.mobilefirstplatform.clientsdk.android
ArtifactId

ArtifactId

analytics
Last Version

Last Version

1.2.7
Release Date

Release Date

Type

Type

jar
Description

Description

IBM Bluemix Mobile Services - Client SDK Android Analytics
This is the analytics component of the Android SDK for IBM Bluemix Mobile Services.
Project URL

Project URL

https://github.com/ibm-bluemix-mobile-services/bms-clientsdk-android-analytics
Source Code Management

Source Code Management

https://github.com/ibm-bluemix-mobile-services/bms-clientsdk-android-analytics

Download analytics

How to add to project

<!-- https://jarcasting.com/artifacts/com.ibm.mobilefirstplatform.clientsdk.android/analytics/ -->
<dependency>
    <groupId>com.ibm.mobilefirstplatform.clientsdk.android</groupId>
    <artifactId>analytics</artifactId>
    <version>1.2.7</version>
</dependency>
// https://jarcasting.com/artifacts/com.ibm.mobilefirstplatform.clientsdk.android/analytics/
implementation 'com.ibm.mobilefirstplatform.clientsdk.android:analytics:1.2.7'
// https://jarcasting.com/artifacts/com.ibm.mobilefirstplatform.clientsdk.android/analytics/
implementation ("com.ibm.mobilefirstplatform.clientsdk.android:analytics:1.2.7")
'com.ibm.mobilefirstplatform.clientsdk.android:analytics:jar:1.2.7'
<dependency org="com.ibm.mobilefirstplatform.clientsdk.android" name="analytics" rev="1.2.7">
  <artifact name="analytics" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.ibm.mobilefirstplatform.clientsdk.android', module='analytics', version='1.2.7')
)
libraryDependencies += "com.ibm.mobilefirstplatform.clientsdk.android" % "analytics" % "1.2.7"
[com.ibm.mobilefirstplatform.clientsdk.android/analytics "1.2.7"]

Dependencies

compile (1)

Group / Artifact Type Version
com.ibm.mobilefirstplatform.clientsdk.android : core jar 3.1.3

Project Modules

There are no modules declared in this project.

bms-clientsdk-android-analytics

Build Status Build Status Codacy Badge Coverage Status Maven Central

Release Notes:

1.2.+

  • Added location for log recording

To properly enable the location service some configuratios are required in the AndroidManifest.xml.

Open the AndroidManifest.xml file for your Android project. You can find this file in app > manifests. Add internet access and location access permission under the <manifest> element:

```
 <uses-permission android:name="android.permission.INTERNET" />
 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
```

If you're using sdk version greater than >= 1.2 then you need to put this below part inside the application of the AndroidManifest.xml file.

```
 <activity
        android:name="com.ibm.mobilefirstplatform.clientsdk.android.ui.UIActivity"
        android:label="@string/app_name"
        android:launchMode="singleTask">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

```

{: codeblock}

1.1.12

  • Updated okhttp version from 2.7.4 to 3.9.0

1.1.11

  • Fixed Analytics to log RequestMethod in NetworkRequests data for a network access

1.1.10

  • Fixed issue where Analytics log recording was not being enabled when initializing.

1.1.9

  • Fixed issue where application session timestamp was not being correctly recorded.

1.1.8

  • Reverted back to also monitoring calls to the Analytics service.

1.1.7

  • Change network transaction monitoring so that calls to the Analytics service are not logged.

1.1.6

  • Fixed issue where developers would get a 403 when sending logs/analytics to the Mobile Analytics service.

1.1.5:

  • Added the ability to record network transactions by using Analytics.DeviceEvent.NETWORK as one of the device events when calling Analytics.initialize().

1.1.4:

  • Fixed issue regarding an exception log that was being shown when reading the SDK version number.

1.1.3:

  • Fixed NullPointerException when calling Analytics.send() or Logger.send() without a response listener.

1.1.2:

  • Fixed problem with Analytics.init() where if you set hasUserContext to false, it would not properly initialize.

1.1.1:

  • Changed Javadoc and corrected small logic error

1.1.0:

  • Added new initializer in order to avoid double counting anonymous users and named users as the same. Deprecated BMSAnalytics.clearUserIdentity(), will be removed in 2.x.

1.0.5:

  • Android Nougat officially supported; changed target SDK version to Android 24.

1.0.3:

  • Fixed error with App Sessions not being properly counted.

Known limitation - currently v2.x of Android SDK does not submit monitoring data. This is a work in progress and will be delivered in following months. If you’d like to continue receiving monitoring data in the service dashboard you can continue using the v1.x SDK.

Copyright 2016 IBM Corp.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

com.ibm.mobilefirstplatform.clientsdk.android

IBM Cloud Mobile Services

IBM Cloud (aka Bluemix) Mobile Services

Versions

Version
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.12
1.1.11
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0