- 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}
- Updated okhttp version from 2.7.4 to 3.9.0
- Fixed Analytics to log RequestMethod in NetworkRequests data for a network access
- Fixed issue where Analytics log recording was not being enabled when initializing.
- Fixed issue where application session timestamp was not being correctly recorded.
- Reverted back to also monitoring calls to the Analytics service.
- Change network transaction monitoring so that calls to the Analytics service are not logged.
- Fixed issue where developers would get a 403 when sending logs/analytics to the Mobile Analytics service.
- Added the ability to record network transactions by using
Analytics.DeviceEvent.NETWORK
as one of the device events when callingAnalytics.initialize()
.
- Fixed issue regarding an exception log that was being shown when reading the SDK version number.
- Fixed NullPointerException when calling
Analytics.send()
orLogger.send()
without a response listener.
- Fixed problem with
Analytics.init()
where if you sethasUserContext
tofalse
, it would not properly initialize.
- Changed Javadoc and corrected small logic error
- 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.
- Android Nougat officially supported; changed target SDK version to Android 24.
- 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.