Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BD-1887: Deliverability for Chinese Android devices #4762

Merged
merged 5 commits into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ nav_title: Best Practices
article_title: Push Best Practices
layout: featured
guide_top_header: "Push Best Practices"
guide_top_text: "Before sending out your push messagea, refer to the following articles for things you should know and check for."
guide_top_text: "Before sending out your push message, refer to the following articles for things you should know and check for."
page_type: landing
description: "This landing page is home to best practices and use cases to make sure your push messages inspire engagement rather than annoyance."
channel: push
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
nav_title: Deliverability for Chinese Android Devices
article_title: Push deliverability for Chinese Android Devices
page_order: 10

page_type: reference
description: "This article covers push deliverability nuances you should be aware of when targeting users on Android devices manufactured by Chinese OEMs."
channel: push

---

# Push deliverability for Chinese Android devices

Some Android devices manufactured by Chinese Original Equipment Manufacturers (OEMs), such as Xiaomi, OPPO, and Vivo, optimize for longer battery lives. This optimization may have the unintended consequence of shutting down background app processing, which can reduce deliverability of your push notifications. To make sure that your app's messaging performance works as expected on these devices, your Marketing and Engineering teams should collaborate and follow the steps outlined in this article.
bre-fitzgerald marked this conversation as resolved.
Show resolved Hide resolved

## Steps for developers
The way that OEMs optimize for battery life is by adding "unrecognized apps" to a blocklist that prevents them from running in the background. As a developer, you'll need to configure your app so that the user can easily place it on the OEM's allowlist.
bre-fitzgerald marked this conversation as resolved.
Show resolved Hide resolved

This can be achieved by having your app automatically start on your end user's device, which gives your app permission to run in the background and listen for messages from Braze. Unfortunately, since this is an OEM-specific problem and not an Android problem, there is no documented API for bringing up the startup permission manager. Each OEM has their own version of a startup permission manager with different package names.
bre-fitzgerald marked this conversation as resolved.
Show resolved Hide resolved

To solve for this, integrate a library like [AutoStarter](https://github.com/judemanutd/AutoStarter) into your application. AutoStarter supports multiple manufacturers, giving you an easy way to call the startup permission manager on a wide array of devices. Once you have integrated AutoStarter, call `AutoStartPermissionHelper.getInstance().getAutoStartPermission(context)` to bring up the startup permission manager on your end user's device. Couple this action with a prompt encouraging the end user to enable "auto-start" for your app. Your Marketing team will craft this message—see below!
bre-fitzgerald marked this conversation as resolved.
Show resolved Hide resolved

## Steps for marketers
After your users opt in to receive push notifications, there are additional steps they can take on their end to improve message delivery for these devices. We recommend you follow up your [push primer message]({{site.baseurl}}/user_guide/message_building_by_channel/push/push_primer_messages/) with an in-app message targeted to users on Chinese OEM devices with these additional steps:

- Enable “auto-start” for the app
- Disable battery optimization for the app

To further amplify your message, add other channels to resurface information from unopened push notifications. For example, out-of-app channels like SMS, WhatsApp, and LINE and in-app channels like in-app messages and Content Cards. Your users will be able to see anything they might have missed the next time they open the app.
bre-fitzgerald marked this conversation as resolved.
Show resolved Hide resolved