Member-only story

How to make Android notification talk: combining FCM with TTS

Chloe Hsu
5 min readNov 28, 2018

--

Source: Coolsmartphone

Sounds creepy if you suddenly heard Mr. / Ms. Google started talking on your phone, isn’t it?

In my work, We wanted to figure a way to remind our user when they getting a new order. Usually, We push notification to the user. BUTTTTTTTT, many of our users are at the age of 35+. Sometimes they receive notifications, they won’t open. So… What do we do?

So I thought how about let App talk? Maybe it’s not the best approach to solve this problem, but I thought to give it a shot.

I’d like to share how I achieved this. In fact, It's easier than I expected.

Let’s get started

Scenario

When the App in the background, and push notification with FCM. I’m expecting TTS will read out loud of notification text.

I use…

  • FCM Notification
  • Broadcast Receiver
  • Notification Listener
  • Text-To-Speach (TTS)

FCM Notification

Source: Android Developer Blog

--

--

Chloe Hsu
Chloe Hsu

Written by Chloe Hsu

Mobile Engineer | Flutter | Android @ Berlin

Responses (3)