- If your app does not target Android O, please use 2.0.x and wait until your app is compatible with Android O and notification channels before upgrading to 2.1.x or 2.2.x.
- Added
AppboyConfig.Builder.setIsSessionStartBasedTimeoutEnabled()
which optionally sets the session timeout behavior to be either session-start or session-end based. The default behavior is to be session-end based.- The use of this flag is recommended for long (30 minutes or longer) session timeout values.
- This value can also be configured via
appboy.xml
with the booleancom_appboy_session_start_based_timeout_enabled
set to true.
- Added support for any custom image library to work with in-app messages and the news feed, including the Glide Image Library.
- Please see
IAppboy#setAppboyImageLoader(IAppboyImageLoader)
for how to set a custom image library.
- Please see
- Added the
Glide Image Integration
sample app, showcasing how to use the Glide Library.
- Updated the proguard rules for Fresco and Notification Enabled Tracking.
- The Braze SDK may now optionally record when the user has disabled notifications at the app level.
- Enabled via
appboy.xml
using thecom_appboy_notifications_enabled_tracking_on
boolean attribute or viaAppboyConfig.Builder.setNotificationsEnabledTrackingOn()
. - If using proguard in your app and Braze SDK v2.2.2 or below, please add
-keep class android.support.v4.app.NotificationManagerCompat { *; }
to your proguard rules. - Please contact support@braze.com before using this feature.
- Enabled via
- Added
Other
,Unknown
,Not Applicable
, andPrefer not to Say
options for user gender.
- Removed
Appboy.requestInAppMessageRefresh()
and removed support for Original in-app messages. Note that all customers on version 2.2.0 and newer should use triggered in-app messages. - Changed the signature of most methods on the
IAppboy
interface. Methods that logged values now return void instead of boolean.IAppboy.openSession()
now returns void.IAppboy.closeSession
now returns void.IAppboy.changeUser()
now returns void. To get the current user, please callIAppboy.getCurrentUser()
.IAppboy.logCustomEvent()
and all method overloads now return void.IAppboy.logPurchase()
and all method overloads now return void.IAppboy.submitFeedback()
now returns void.IAppboy.logPushNotificationOpened()
now returns void.IAppboy.logPushNotificationActionClicked()
now returns void.IAppboy.logFeedDisplayed()
now returns void.IAppboy.logFeedbackDisplayed()
now returns void.
- Removed
AppboyFeedbackFragment.FeedbackResult.ERROR
. - Changed
AppboyFeedbackFragment.FeedbackFinishedListener
toAppboyFeedbackFragment.IFeedbackFinishedListener
. - Changed
AppboyFeedbackFragment.FeedbackResult.SENT
toAppboyFeedbackFragment.FeedbackResult.SUBMITTED
. - Removed
Appboy.fetchAndRenderImage()
. Please usegetAppboyImageLoader().renderUrlIntoView()
instead. - Removed
AppboyFileUtils.getExternalStorage()
.
- Added Push Stories, a new push type that uses
DecoratedCustomViewStyle
to display multiple images in a single notification. We recommend posting push stories to a notification channel with vibration disabled to avoid repeated vibrations as the user navigates through the story.
- The Braze singleton now internally performs most actions on a background thread, giving a very substantial performance boost to all actions on the
Appboy
singleton.
- Reduced the number of connections made when the Braze SDK downloads files and images. Note that the amount of data downloaded has not changed.
- Added a check on Braze initialization for the "Calypso AppCrawler" indexing bot that disables all Braze network requests when found. This prevents erroneous Braze data from being sent for Firebase app indexing crawlers.
- Added the ability to disable adding an activity to the back stack when automatically following push deep links. Previously, the app's main activity would automatically be added to the back stack.
- Enabled via
appboy.xml
using thecom_appboy_push_deep_link_back_stack_activity_enabled
boolean attribute or viaAppboyConfig.Builder.setPushDeepLinkBackStackActivityEnabled()
.
- Enabled via
- Added the ability to specify a custom activity to open on the back stack when automatically following push deep links. Previously, only the app's main activity could be used.
- The custom activity is set via
appboy.xml
using thecom_appboy_push_deep_link_back_stack_activity_class_name
string attribute or viaAppboyConfig.Builder.setPushDeepLinkBackStackActivityClass()
. Note that the class name used in theappboy.xml
must be the exact class name string as returned fromYourClass.class.getName()
.
- The custom activity is set via
- Added the
setLanguage()
method toAppboyUser
to allow explicit control over the language you use in the Braze dashboard to localize your messaging content.
- Added support for acquiring wake locks on Android O using the notification channel importance instead of the individual notification's priority.
- Fixed a bug where implicit intents for custom push broadcast receivers would be suppressed in devices running Android O.
- Updated the Braze ProGuard configuration to ensure Google Play Services classes required by Geofencing aren't renamed.
- Fixed a bug where sealed session flushes would not be sent on apps with long session timeouts due to Android O background service limitations.
- Added the ability to set a custom API endpoint via
appboy.xml
using thecom_appboy_custom_endpoint
string attribute or viaAppboyConfig.Builder.setCustomEndpoint()
.
- Fixed a bug where date custom attributes were formatted in the device's locale, which could result in incorrectly formatted dates. Date custom attributes are now always formatted in
Locale.US
.
- Updated the minimum SDK version from 9 (Gingerbread) to 14 (Ice Cream Sandwich).
- We recommend that session tracking and In-App Messages registration be done via an
AppboyLifecycleCallbackListener
instance usingApplication.registerActivityLifecycleCallbacks()
.
- We recommend that session tracking and In-App Messages registration be done via an
- Removed the deprecated field:
AppboyLogger.LogLevel
. Please useAppboyLogger.setLogLevel()
andAppboyLogger.getLogLevel()
instead. - Updated the v4 support library dependency to version 26.0.0. To download Android Support Libraries versions 26.0.0 and above, you must add the following line to your top-level
build.gradle
repositories block:maven { url "https://maven.google.com" }
- Added support for Android O notification channels. In the case that a Braze notification does not contain the id for a notification channel, Braze will fallback to a default notification channel. Other than the default notification channel, Braze will not create any channels. All other channels must be programatically defined by the host app.
- Note that default notification channel creation will occur even if your app does not target Android O. If you would like to avoid default channel creation until your app targets Android O, do not upgrade to this version.
- To set the user facing name of the default Braze notification channel, please use
AppboyConfig.setDefaultNotificationChannelName()
. - To set the user facing description of the default Braze notification channel, please use
AppboyConfig.setDefaultNotificationChannelDescription()
.
- Updated the target SDK version to 26.
- Fixed a bug where relative links in
href
tags in HTML In-App Messages would get passed as file Uris to theAppboyNavigator
.
- Added
Double
as a valid value type onAppboyUser.setCustomUserAttribute()
. - Added user aliasing capability. Aliases can be used in the API and dashboard to identify users in addition to their ID. See the
addAlias
method onAppboyUser
for more information.
- Made further improvements to Braze singleton initialization performance.
- Enabled TLS 1.2 for Braze HTTPS connections running on API 16+ devices. Previously, for devices running on API 16-20, only TLS 1.0 was enabled by default.
- Improved Braze singleton initialization performance.
- Fixed a bug where identifying a user while a request was in flight could cause newly written attributes on the old user to be orphaned in local storage.
- Added support for displaying Youtube videos inside of HTML in-app messages and the Braze Webview. For HTML in-app messages, this requires hardware acceleration to be enabled in the Activity where the in-app message is being displayed, please see https://developer.android.com/guide/topics/graphics/hardware-accel.html#controlling. Please note that hardware acceleration is only available on API versions 11 and above.
- Added the ability to access Braze's default notification builder instance from custom
IAppboyNotificationFactory
instances. This simplifies making small changes to Appboy's default notification handling. - Improved
AppboyImageUtils.getBitmap()
by adding the ability to sample images using preset view bounds.
- Removed the following deprecated methods and fields:
- Removed the unsupported method
Appboy.logShare()
. - Removed
Appboy.logPurchase(String, int)
. - Removed
Appboy.logFeedCardImpression()
andAppboy.logFeedCardClick()
. Please useCard.logClick()
andCard.logImpression()
instead. - Removed the unsupported method
Appboy.getAppboyResourceEndpoint()
. - Removed
IAppboyEndpointProvider.getResourceEndpoint()
. Please update your interface implementation if applicable. - Removed
Appboy.registerAppboyGcmMessages()
. Please useAppboy.registerAppboyPushMessages()
instead. - Removed
AppboyInAppMessageBaseView.resetMessageMargins()
. Please useAppboyInAppMessageBaseView.resetMessageMargins(boolean)
instead. - Removed
com.appboy.unity.AppboyUnityGcmReceiver
. To open Braze push deep links automatically in Unity, set the boolean configuration parametercom_appboy_inapp_show_inapp_messages_automatically
to true in yourappboy.xml
. - Removed the unsupported method
AppboyUser.setBio()
. - Removed
AppboyUser.setIsSubscribedToEmails()
. Please useAppboyUser.setEmailNotificationSubscriptionType()
instead. - Removed
Constants.APPBOY_PUSH_CUSTOM_URI_KEY
. Please useConstants.APPBOY_PUSH_DEEP_LINK_KEY
instead. - Removed
Constants.APPBOY_CANCEL_NOTIFICATION_TAG
. - Removed
com.appboy.ui.actions.ViewAction
andcom.appboy.ui.actions.WebAction
. - Removed
CardCategory.ALL_CATEGORIES
. Please useCardCategory.getAllCategories()
instead. - Removed
AppboyImageUtils.storePushBitmapInExternalStorage()
. - Removed
AppboyFileUtils.canStoreAssetsLocally()
andAppboyFileUtils.getApplicationCacheDir()
. - Removed
InAppMessageModal.getModalFrameColor()
andInAppMessageModal.setModalFrameColor()
. Please useInAppMessageModal.getFrameColor()
andInAppMessageModal.setFrameColor()
instead. - Removed
com.appboy.enums.SocialNetwork
. - Removed
AppboyNotificationUtils.getAppboyExtras()
. Please useAppboyNotificationUtils.getAppboyExtrasWithoutPreprocessing()
instead. - Removed
AppboyNotificationUtils.setLargeIconIfPresentAndSupported(Context, AppboyConfigurationProvider, NotificationCompat.Builder)
. Please useAppboyNotificationUtils.setLargeIconIfPresentAndSupported(Context, AppboyConfigurationProvider, NotificationCompat.Builder, Bundle)
instead. - Removed
AppboyInAppMessageManager.hideCurrentInAppMessage()
. Please useAppboyInAppMessageManager.hideCurrentlyDisplayingInAppMessage()
instead.
- Removed the unsupported method
- Changed method signatures for
gotoNewsFeed()
andgotoURI()
inIAppboyNavigator
. Please update your interface implementation if applicable. - Removed
Appboy.unregisterAppboyPushMessages()
. Please useAppboyUser.setPushNotificationSubscriptionType()
instead. - Moved
getAppboyNavigator()
andsetAppboyNavigator()
fromAppboy.java
toAppboyNavigator.java
. - The Braze Baidu China Push integration now uses the Baidu
channelId
as the push token. Please update your push token registration code to passchannelId
instead ofuserId
intoAppboy.registerAppboyPushMessages()
. The China Push sample has been updated. - Removed the
wearboy
andwear-library
modules. Android Wear 1.0 is no longer supported. Please removeAppboyWearableListenerService
from yourAndroidManifest.xml
if applicable.
- Added a javascript interface to HTML in-app messages with ability to log custom events, purchases, user attributes, navigate users, and close the messaage.
- Added the ability to set a single delegate object to custom handle all Uris opened by Braze across in-app messages, push, and the news feed. Your delegate object should implement the
IAppboyNavigator
interface and be set usingAppboyNavigator.setAppboyNavigator()
.- See https://github.com/Appboy/appboy-android-sdk/blob/master/droidboy/src/main/java/com/appboy/sample/CustomAppboyNavigator.java for an example implementation.
- You must also provide instructions for Braze to navigate to your app's (optional) news feed implementation. To use Braze's default handling, call
AppboyNavigator.executeNewsFeedAction(context, uriAction);
. - Note: Previously,
AppboyNavigator
was only used when opening in-app messages.
- Removed the need to manually add declarations for Braze's news feed and in-app message activities (
AppboyFeedActivity
andAppboyWebViewActivity
) to the appAndroidManifest.xml
. If you have these declarations in your manifest, they can be safely removed. - Push notifications with web url click actions now open in an in-app webview instead of the external mobile web browser when clicked.
- Added support for registering geofences with Google Play Services and messaging on geofence events. Please reach out to success@braze.com for more information about this feature.
- Support for share type notification action buttons and custom notification action buttons was removed.
- Push deep links that can be handled by the current app are automatically opened using the current app. Previously, if another app could handle the deep link as well, a chooser dialog would open.
AppboyImageUtils.storePushBitmapInExternalStorage()
has been deprecated.
- Renamed the
android-sdk-jar
artifact in thegh-pages
branch toandroid-sdk-base
and changed its format fromjar
toaar
. Most integrations depend onandroid-sdk-ui
and won't need to take any action.- Note: If you were compiling
android-sdk-jar
in yourbuild.gradle
, you must now compileandroid-sdk-base
.
- Note: If you were compiling
- Added the ability to set custom read and unread icons for News Feed cards. To do so, override the
Appboy.Cards.ImageSwitcher
style in yourstyles.xml
and addappboyFeedCustomReadIcon
andappboyFeedCustomUnReadIcon
drawable attributes. - Added a sample app showcasing the FCM + Braze push integration. See
/samples/firebase-push
. - Added a sample app for manual session integration. See
/samples/manual-session-integration
.
- Removed the
-dontoptimize
flag from Braze's UI consumer proguard rules. See https://github.com/Appboy/appboy-android-sdk/blob/master/android-sdk-ui/appboy-proguard-rules.pro for the latest Proguard config.- Thanks to mnonnenmacher
- See Appboy#69
- Updated the Droidboy project to use the conventional Android Build System folder structure.
- Added the ability to configure Braze completely at runtime using
Appboy.configure()
. Values set at runtime take precedence over their counterparts inappboy.xml
. A complete example of Braze runtime configuration is available in our Hello Appboy sample app's application class.- Renamed
com.appboy.configuration.XmlAppConfigurationProvider
tocom.appboy.configuration.AppboyConfigurationProvider
. Appboy.configure(String)
changed toAppboy.configure(Context, AppboyConfig)
. To maintain parity, replace your current usage with the following equivalent snippit:
AppboyConfig appboyConfig = new AppboyConfig.Builder() .setApiKey("your-api-key") .build(); Appboy.configure(this, appboyConfig);
- Renamed
- Fixed an issue where in-app messages triggered off of push clicks wouldn't fire because the push click happened before the in-app message configuration was synced to the device.
- Updated
Appboy.registerAppboyPushMessages()
to flush the subscription to the server immediately. - Improved the accessibility-mode behavior of in-app messages.
- Added the ability to toggle outbound network requests from the Braze SDK online/offline. See
Appboy.setOutboundNetworkRequestsOffline()
for more details.
- Fixed a bug that caused session sealed automatic data flushes to not occur.
- Removed Braze notification action button icons and icon constants.
- Fixed a bug where in-app messages triggered while no activity was registered with
AppboyInAppMessageManager
would be dropped.
- Fixed a bug where in-app messages triggered while no activity was registered with
AppboyInAppMessageManager
would be displayed without assets.
- Added Hebrew localization strings.
- Improved the initialization time of the Braze SDK.
- Removed fetching of the device hardware serial number as part of device metadata collection.
- Deprecated
AppboyInAppMessageManager.hideCurrentInAppMessage()
. Please useAppboyInAppMessageManager.hideCurrentlyDisplayingInAppMessage()
instead.
- Added the option to handle session tracking and
InAppMessageManager
registration automatically on apps with a minimum supported SDK of API level 14 or above. This is done by registering anAppboyLifecycleCallbackListener
instance usingApplication.registerActivityLifecycleCallbacks()
. See the Hello Appboy sample app's application class for an example. - Added support for upgraded in-app messages including image-only messages, improved image sizing/cropping, text scrolling, text alignment, configurable orientation, and configurable frame color.
- Added support for in-app messages triggered on custom event properties, purchase properties, and in-app message clicks.
- Added support for templating event properties within in-app messages.
- Added the ability to optionally open deep links and the main activity of the app automatically when a user clicks a push notification, eliminating the need to write a custom
BroadcastReceiver
for Braze push. To activate, set the boolean propertycom_appboy_handle_push_deep_links_automatically
totrue
in yourappboy.xml
. Note that even when automatic deep link opening is enabled, Braze push opened and received intents will still be sent. To avoid double opening, remove your customBroadcastReceiver
or modify it to not open deep links.
- Fixed a bug where images in short news and cross promotion News Feed cards would appear too small on high resolution devices. This bug did not affect Fresco users.
- Updated Baidu push service jar from v4.6.2.38 to v5.1.0.48.
- Renamed
disableAllAppboyNetworkRequests()
toenableMockAppboyNetworkRequestsAndDropEventsMode()
and fixes a bug where callingAppboy.changeUser()
would cause a network request even in disabled/mocked mode. Note thatenableMockAppboyNetworkRequestsAndDropEventsMode
should only be used in testing environments.
- Added the ability to log negatively-priced purchases.
- Added the option to sort News Feed cards based on read/unread status.
- Added a custom News Feed click delegate. To handle News Feed clicks manually, implement
IFeedClickActionListener
and register an instance usingAppboyFeedManager.getInstance().setFeedCardClickActionListener()
. This enables use-cases such as selectively using the native browser to open web links.
- Added the ability to include file separators in User Ids.
- Changes Braze's default Log Level from VERBOSE to INFO. Previously disabled debug log statements are enabled and available for debugging. To change Braze's Log Level, update the value of
AppboyLogger.LogLevel
, e.g.AppboyLogger.LogLevel = Log.VERBOSE
.
- Removed
keep
rules fromconsumerProguardFiles
automatic Proguard configuration for potentially improved optimization for client apps. Note that client apps that Proguard Braze code must now store release mapping files for Braze to interpret stack traces. If you would like to continue tokeep
all Braze code, add-keep class bo.app.** { *; }
and-keep class com.appboy.** { *; }
to your Proguard configuration.- See Appboy#54
- Removed
onRetainInstance()
from the Braze News Feed fragment. As a result, the News Feed may be used in nested fragments.
- Defined
com_appboy_card_background
to provide simpler control of news feed card background color. - Added a convenience method to
Month
to allow direct instantiation from a month integer.
- Removed optimizations from the private library's Proguard configuration to allow dexing Braze with Jack and Android Gradle Plugin 2.2.0+.
- Added ability to set push and email subscription state from Droidboy.
- Open sourced Braze's Unity plugin library code.
- Added the ability to set the large notification icon from within the GCM payload.
- Added
consumerProguardFiles
automatic Proguard configuration.
- Fixed a bug where triggered HTML in-app messages would not always send button analytics.
- Updated Baidu push service jar from v4.3.0.4 to v4.6.2.38.
- Updated to log analytics for in-app messages and in-app message buttons with 'NONE' click actions.
- Updated the Droidboy sample app to use material design.
- Updated the Hello Appboy sample app to use Proguard.
- Fixed bug where passing a
JSONObject
with multiple invalid keys or values to theAppboyProperties
constructor would cause aConcurrentModificationException
.
- Added handling to a case where certain devices were returning null Resources for GCM BroadcastReceiver onReceive contexts.
- Added support for action-based, locally triggered in-app messages. In-app messages are now sent to the device at session start with associated trigger events. The SDK will display in-app messages in near real-time when the trigger event associated with a message occurs. Trigger events can be app opens, push opens, purchases, and custom events.
- Deprecated the old system of requesting in-app message display, now collectively known as 'original' in-app messaging, where messages were limited to displaying at app start.
- Removed Iab billing example code from Droidboy.
- Removed the deprecated method
Appboy.requestSlideupRefresh()
. Please useAppboy.requestInAppMessageRefresh()
instead. - Removed the deprecated class AppboySlideupManager. Please use AppboyInAppMessageManager instead.
- HTML in-app message WebViews now use wide viewport mode and load pages in overview mode.
- Moved
AppboyImageUtils
to the private library with an updated api. - Moved
WebContentUtils
to the private library. - Renamed
IInAppMessageHtmlBase
toInAppMessageHtmlBase
. - Method count of the private Braze library has decreased by over 600 since version 1.11.0.
- Removed the partial duplicate of the private library's StringUtils from the ui project.
- Fixed bug where large and small icons both rendered at full size in notification remoteviews for Honeycomb/ICS. Now, if a large icon is available, only the large icon is shown. Otherwise, the small icon is used.
- Fixed bug where push open logs were under-reported under certain device conditions.
- Placeholder for Unity release.
- Creates Activity based Unity in-app messages (fixing an issue where touches on in-app messages were hitting the game behind the in-app message) and removes redundant Unity permissions.
- Added a method for setting modal frame color on in-app messages, no longer displays in-app messages on asset download failure and adds robustness.
- Added deep link support to
AppboyUnityGcmReceiver
.
- Makes the WebView background for HTML in-app messages transparent. Ensure your HTML in-app messages expect a transparent background.
- Updated Google Play Services from to 7.5.0 to 8.3.0 and Play Services Support from 1.2.0 to 1.3.0.
- See Appboy#45
- Updated Braze WebView to support redirects to deep links and enables DOM storage.
- Added Android M Support. Under the runtime permissions model introduced in Android M, location permission must be explicitly obtained from the end user by the integrating app. Once location permission is granted, Braze will resume location data collection on the subsequent session.
- Added the ability to log a custom event from an HTML in-app message. To log a custom event from an HTML in-app message, navigate a user to a url of the form
appboy://customEvent?name=customEventName&p1=v2
, where thename
URL parameter is the name of the event, and the remaining parameters are logged as String properties on the event.
- Enabled javascript in HTML in-app messages.
- Deprecated
logShare()
andsetBio()
in the public interface as support in the Braze dashboard has been removed.
- Fixed an issue where applications in extremely resource starved environments were seeing ANRs from the periodic dispatch
BroadcastReceiver
. This was not a bug in the Braze code, but a symptom of a failing application. This updates our periodic dispatch mechanism so it won't have this symptomatic behavior, which in some cases should help developers track down the source of the actual issue (depending on the bug). Apps that only use the Braze jar file will now have to register<service android:name="com.appboy.services.AppboyDataSyncService"/>
in theirAndroidManifest.xml
to enable Braze to periodically flush data. - Fixed a very rare issue where calling
Context.checkCallingOrSelfPermission()
would cause an exception to be thrown on certain custom Android builds.
- Updated the News Feed to not show cards in the local cache that have expired.
- Fixed bug triggered when
AppboyWearableListenerService
was not registered.
- All users must add the line
-dontwarn com.google.android.gms.**
to their proguard config file if using proguard.- See Appboy#43
- Added support for analytics from Android Wear devices.
- Added support for displaying notification action buttons sent from the Braze dashboard. To allow image sharing on social networks, add the
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
permission to yourAndroidManifest.xml
. - Added delegate to
FeedbackFinishedListener
enabling modification of feedback messages before they are sent to Appboy. Also adds a disposition parameter toonFeedbackFinished()
. - Added support for GIF images in the News Feed and in In-App Messages via the Facebook Fresco image library (version 0.6.1) as a provided library. If found in the parent app (your app), images and GIFs will be loaded using views from the Fresco library. In order to display GIFs, Fresco must be added as a dependency in the parent app. If not found in the parent app, News Feed cards and In-App Messages will not display GIFs. To disable use of the Fresco library in the UI project, set the value of
com_appboy_enable_fresco_library_use
to false (or omit it) in yourappboy.xml
; to enable Fresco use setcom_appboy_enable_fresco_library_use
to true in yourappboy.xml
. ImageView specific attributes for News Feed cards and In-App Messages, such asscaleType
, must now be applied programmatically instead of being applied fromstyles.xml
. If using Fresco and proguarding your app, please include http://frescolib.org/docs/proguard.html with your proguard config. If you are not using Fresco, add thedontwarn com.appboy.ui.**
directive. Note: to use Fresco with Braze it must be initialized when your application launches. - Added explicit top and bottom padding values for In-App Message buttons to improve button rendering on some phones. See the
Appboy.InAppMessage.Button
style instyles.xml
. - Added HTML In-App Message types. HTML In-App Messages consist of html along with an included zipped assets file to locally reference images, css, etc. See
CustomHtmlInAppMessageActionListener
in our Droidboy sample app for an example listener for the callbacks on the actions inside the WebView hosting the HTML In-App Message. - Added a
setAttributionData()
method to AppboyUser that sets an AttributionData object for the user. Use this method with attribution provider SDKs when attribution events are fired.
- Removed the need for integrating client apps to log push notifications inside their activity code. Please remove all calls to
Appboy.logPushNotificationOpened()
from your app as they are now all handled automatically by Braze. Otherwise, push opens will be incorrectly logged twice. - In-App Message views are now found in the
com.appboy.ui.inappmessage.views
package and In-App Message listeners are now found in thecom.appboy.ui.inappmessage.listeners
package.
- Added the ability to specify custom fonts for in-app message ui elements via the
appboyInAppMessageCustomFontFile
custom xml attribute. - Increases the number of supported currency codes from 22 to 171. All common currency codes are now supported. The full list of supported codes is available at our Javadoc.
- Added the method
isUninstallTrackingPush()
to AppboyNotificationUtils to be able to detect background push sent for Braze uninstall tracking.
- Updated
BigPictureStyle
to show message in expanded view if summary is not present (after 1.7.0 a summary was required in expanded view to have text appear).
- Internal release for Xamarin, adds
AppboyXamarinFormsFeedFragment
.
- Updated the minimum sdk version from 8 (froyo) to 9 (gingerbread).
- Added an opt-in location service that logs background location events.
- Fixed an in-app message lifecycle listener bug where certain lifecycle events could be fired twice.
- Added Braze logging configurability by setting the AppboyLogger.LogLevel. This is intended to be used in development environments and should not be set in a released application as logging statements are essential for debugging.
- See Appboy#38
- Added
getAppboyPushMessageRegistrationId()
to the Braze interface to enable retrieval of the GCM/ADM/Baidu registration ID Braze has set for the device.
- Updated our libraries to build against API level 22.
- Blacklisted custom attributes may no longer be incremented.
- Introduced
AppboyNotificationUtils.getAppboyExtrasWithoutPreprocessing()
to parse Braze extras from GCM/ADM intent extras directly rather than requiring Braze extras to be parsed into a Bundle before being passed intoAppboyNotificationUtils.getAppboyExtras()
. - Added the ability to send and retrieve extra key-value pairs via a News Feed card.
- Added the ability to define custom key-value properties on a custom event or purchase. Property keys are strings and values may be strings, doubles, ints, booleans, or
java.util.Date
objects.
- Removed
DownloadUtils.java
fromcom.appboy.ui.support
. ThedownloadImageBitmap()
function has been moved tocom.appboy.support.AppboyImageUtils
.
- Upgrades Droidboy's custom user attributes and purchases capability and refactors the settings page.
- Removed requirement to manually integrate Font Awesome into the client app's /assets folder for in-app messages with icons.
- Added summary subtext in
BigView
style notifications. This is a breaking change inBigView
style notification display. Previously the summary text inBigView
style notifications was set to the bundle/dashboard summary text if it was present, or the alert message otherwise. Now the bundle/dashboard summary text is used to set the message subtext, which results in the bundle/dashboard summary text being shown in both the collapsed and expanded views. See our updated push previews for a visualization of this change.
- Added the ability to set a custom
IAppboyNotificationFactory
to customize push usingAppboy.setCustomAppboyNotificationFactory()
. - Added the ability to override title and summary in
BigView
push notifications. - Added the ability to set a default large icon for push messages by adding the
com_appboy_push_large_notification_icon
drawable resource to yourappboy.xml
. - Added support for modal and full screen style in-app messages. Also adds support for including fontawesome icons and images with in-app messages, changing colors on in-app message UI elements, expanded customization options, and message resizing for tablets. Please visit our documentation for more information.
- Added a sample application (China Sample App) which integrates Baidu Cloud Push and Braze for sending push messages through Braze to devices without Google Services installed.
- Added
AppboyNotificationUtils.logBaiduNotificationClick()
, a utility method for logging push notification opens from push messages sent via Baidu Cloud Push by Braze.
- Refactors AppboyNotificationUtils into multiple classes in the com.appboy.push package and the AppboyImageUtils class in com.appboy.
- Added a major performance upgrade that reduces CPU usage, memory footprint, and network traffic.
- Added 26 additional languages to localization support for Braze UI elements.
- Added local blocking for blacklisted custom attributes, events, and purchases. However, blacklisted attributes may still be incremented (removed in release 1.7.3).
- Added the ability to set the accent color for notification in Android Lollipop and above. This can be done by setting the
com_appboy_default_notification_accent_color
integer in yourappboy.xml
. - Updated the News Feed to render wider on tablet screens.
- Added swipe handling for in-app messages on APIs <= 11.
- Updated our UI library to build against API level 21.
- Fixed a timezone bug where short names were used for lookup, causing the default timezone (GMT) to be set in cases where the short name was not equal to the time zone Id.
- Fixed a bug where multiple pending push intents could override each other in the notification center.
- Fixed News Feed swipe-refresh
CalledFromWrongThreadException
.
- Updated the android-L preview support from version 1.5.2 to support the public release of Android 5.0. Updates the v4 support library dependency to version 21.0.0.
android.permission.GET_ACCOUNTS
is no longer required during initial GCM registration for devices running Jelly Bean and higher. However, use of this permissions is recommended so that pre-Jelly Bean devices can register with GCM.android.permission.WAKE_LOCK
is no longer required during initial GCM registration. However, use of this permissions is recommended to allow notifications to wake the screen and engage users when the notification arrives.- No longer overwrite messages in the notification center based on collapse key (GCM) or consolidation key (ADM). Instead, overwrite based on message title and message alert, or, if specified, a custom notification id.
- Updated Droidboy to use the most recent Google IAB helper classes.
- Added support for displaying Kindle notifications with images.
- Notifications with a minimum priority specified no longer trigger the device wakelock because Android does not display them in the status bar (they appear silently in the drawer).
- Removed styleable elements from the UI project. This should have no impact on consuming projects.
- Incubates a feature to allow for runtime changes to be made to the API key. Please contact android@braze.com if you want to test this feature.
- Added support for Big View text summaries, allowing summary text to be displayed under the main text in a notification.
- Added support for custom URIs to open when a notification is clicked.
- Added support for notification duration control. When specified, sets an alarm to remove a notification from the notification center after the specified duration.
- Added support for notification sounds. Users can specify a notification sound URI to play with the notification.
- Added support for changing In-App Message duration from the client app. To do this, you can modify the slideup object passed to you in the
onReceive()
delegate using the new setter methodIInAppMessage.setDurationInMilliseconds()
.
- Updated
AppboyWebViewActivity
to always fill the parent view. This forces some previously problematic websites to render at the correct size.
- Added the ability to turn off Braze's automatic location collection using the
com_appboy_disable_location_collection
boolean inappboy.xml
. - Added the ability to send location tracking events to Braze manually using setLastKnownLocation on the AppboyUser. This is intended to be used with
com_appboy_disable_location_collection
set to true so that locations are only being recorded from a single source.
- Added support for GCM and ADM messages without collapse keys.
- Added support for GCM and ADM messages with notification priorities.
- Enabled setting a registration ID without a full push setup;
registerAppboyGcmMessages()
andregisterAppboyPushMessages()
no longer throw null pointer exceptions if Braze isn't correctly configured to display push messages. - Enabled
AppboyWebViewActivity
to download items. - Added support for apps built targeting android-L. Braze's process for registering push notifications had previously used an implicit service intent which caused a runtime error. Any apps built against android-L will need to upgrade to this version. However, apps with Braze that are/were built against any other versions of Android will run without issue on android-L. Thus, this is not an urgent upgrade unless you're working with android-L.
- Removed extraneous features from Droidboy so it's more easily digestible as a sample application.
- Removed obfuscation from parameter names on public models.
- Added Kindle Fire support and ADM support.
- Added read/unread visual indicators to newsfeed cards. Use the configuration boolean com_appboy_newsfeed_unread_visual_indicator_on in appboy.xml to enabled the indicators. Additionally, moved the
logFeedCardImpression()
andlogFeedCardClick()
methods to the card objects themselves. - Added support to image loading in CaptionedImage and Banner cards for dynamic resizing after loading the image url; supports any aspect ratio.
- Added Hello Appboy sample project that shows a minimal use case of the Braze SDK.
- Added wake lock to
AppboyGcmReceiver
in the UI project. When theWAKE_LOCK
permission is set, the screen will be turned on when a notification is received.
- Moved constants from
AppboyGcmReceiver
(ie:APPBOY_GCM_NOTIFICATION_TITLE_ID
, etc.) into newAppboyNotificationUtils
class. - Restricted productId to 255 characters for
Appboy.logPurchase()
.
- Removed org.json classes from appboy.jar.
- Added summary text for push image notifications.
- Added a new constant,
APPBOY_LOG_TAG_PREFIX
, for logging which includes the sdk version number.
- Added automatic tests to verify that the sdk has integrated correctly.
- Added an optional quantity amount to in-app-purchases.
- Changed the device identifier from the device persistent
ANDROID_ID
to a non device persistent identifier for compliance with the new Google Play Terms of Service.
- Removed default max length and ellipsize properties in the
styles.xml
. The old defaults were set to 5 for maxLines for newsfeed cards and ellipsize 'end'.
- Added categories.
- Added swipe to refresh functionality to the newsfeed. The swipe to refresh colors are configurable in the colors xml file.
- Added configurable session timeout to the
appboy xml
. - Added images to GCM push notifications.
- Added email and push notification subscription types for a user. Subscription types are explicitly opted in, subscribed, and unsubscribed. The old email boolean subscribe method has been deprecated.
- The feedback form now displays error popups to the user on invalid fields.
- Removed click logging on slideups when action is
None
.
- Minor changes to address some Lint issues in the UI project.
- Updated the open source AppboyGcmReceiver to use references to R.java for resource identifiers. This became possible when we moved AppboyGcmReceiver.java into the android-sdk-ui project (from the base library JAR).
- Minor bug fix for a crash that occurred in certain conditions where the News Feed cards were replaced with a smaller set of cards.
- Fixed a few minor style issues to be closer in line with Eclipse's preferences.
- Fixed a potential synchronization issue with the AppboyListAdapter.
- Added the ability to set the avatar image URL for your users.
- Fixed support for protocol URLs and adds an ActivityAction overload that streamlines the use of deep link and web link actions.
- Minor update to Chinese language translation.
- Moved com.appboy.AppboyGcmReceiver to the open source android-sdk-ui project. Also moves some of the constants previously available as AppboyGcmReceiver.* to com.appboy.constants.APPBOY_GCM_*. The CAMPAIGN_ID_KEY previously used in our sample app is still available in com.appboy.AppboyGcmReceiver, but if you were using other constants, you'll have to move the references.
- Removed input validation on custom attribute key names so that you can use foreign characters and spaces to your heart's desire. Just don't go over the max character limit.
- Updated to version 1.9.1 of Android-Universal-Image-Loader.
- Added Chinese language translations.
- Minor cleanup to imports.
Braze version 1.3 provides a substantial upgrade to the slideup code and reorganization for better flexibility moving forward, but at the expense of a number of breaking changes. We've detailed the changes in this changelog and hope that you'll love the added power, increased flexibility, and improved UI that the new Braze slideup provides. If you have any trouble with these changes, feel free to reach out to success@braze.com for help, but most migrations to the new code structure should be relatively painless.
New AppboySlideupManager
- The AppboySlideupManager has moved to
com.appboy.ui.slideups.AppboySlideupManager.java
. - An
ISlideupManagerListener
has been provided to allow the developer to control which slideups are displayed, when they are displayed, as well as what action(s) to perform when a slideup is clicked or dismissed.- The slideup
YOUR-APPLICATION-PACKAGE-NAME.intent.APPBOY_SLIDEUP_CLICKED
event has been replaced by theISlideupManagerListener.onSlideupClicked(Slideup slideup, SlideupCloser slideupCloser)
method.
- The slideup
- Added the ability to use a custom
android.view.View
class to display slideups by providing anISlideupViewFactory
. - Default handling of actions assigned to the slideup from the Braze dashboard.
- Slideups can be dismissed by swiping away the view to either the left or the right. (Only on devices running Honeycomb Android 3.1 or higher).
- Any slideups that are created to be dismissed by a swipe will automatically be converted to auto dismiss slideups on devices that are not running Android 3.1 or higher.
Slideup model
- A key value
extras
java.util.Map has been added to provide additional data to the slideup.Extras
can be on defined on a per slideup basis via the dashboard. - The
SlideFrom
field defines whether the slideup originates from the top or the bottom of the screen. - The
DismissType
property controls whether the slideup will dismiss automatically after a period of time has lapsed, or if it will wait for interaction with the user before disappearing.- The slideup will be dismissed automatically after the number of milliseconds defined by the duration field have elapsed if the slideup's DismissType is set to AUTO_DISMISS.
- The ClickAction field defines the behavior after the slideup is clicked: display a news feed, redirect to a uri, or nothing but dismissing the slideup. This can be changed by calling any of the following methods:
setClickActionToNewsFeed()
,setClickActionToUri(Uri uri)
, orsetClickActionToNone()
. - The uri field defines the uri string that the slide up will open when the ClickAction is set to URI. To change this value, use the
setClickActionToUri(Uri uri)
method. - Convenience methods to track slideup impression and click events have been added to the
com.appboy.models.Slideup
class.- Impression and click tracking methods have been removed from
IAppboy.java
.
- Impression and click tracking methods have been removed from
- A static
createSlideup
method has been added to create custom slideups.
IAppboyNavigator
- A custom
IAppboyNavigator
can be set viaIAppboy.setAppboyNavigator(IAppboyNavigator appboyNavigator)
which can be used to direct your users to your integrated Braze news feed when certain slideups are clicked. This provides a more seamless experience for your users. Alternatively, you can choose not to provide an IAppboyNavigator, but instead register the newAppboyFeedActivity
class in yourAndroidManifest.xml
which will open a new Braze news feed Activity when certain slideups are clicked.
Other
- A new base class,
AppboyBaseActivity
, has been added that extendsandroid.app.Activity
and integrates Braze session and slideup management. - A drop in
AppboyFeedActivity
class has been added which can be used to display the Braze news feed.
- Fixed a ProGuard issue.
- Introduced two new card types (Banner card and Captioned Image card).
- Added support for sending down key/value pairs as part of a GCM message.
- Minor bug fixes.
- Added support for reporting purchases in multiple currencies.
- Fixed a bug in caching custom events to a SQLite database.
- Fixed a validation bug when logging custom events.
- Deprecated
IAppboy.logPurchase(String, int)
.
- Initial release