Get it on Google Play تحميل تطبيق نبأ للآندرويد مجانا اقرأ على الموقع الرسمي

Bringing @Twitter's DMs into Android 11’s Conversation API

Android Developers Blog


This blogpost is a collaboration between Google and Twitter. Authored by Aaron Labiaga with support from Fred Lohner, Suzanne Xie, and Alex Ackerman-Greenberg from Twitter.

Direct Messages for the conversation space

Twitter is a social media app and source for what's happening in the world. And with Android 11’s Conversation APIs, surfacing Twitter’s Direct Messages to the conversation space makes perfect sense as it features real people talking in real time bidirectional conversations.

Conversation Notification API

To surface notifications in the conversation space, developers need to use Messaging style notifications set with a published long-lived shortcut ID. The shortcut ID allows for surfacing the conversation throughout various surfaces in the UI, including as a shortcut in the launcher. For details and sample code on how this is done, please see the conversation API guidelines.

A Q&A with the Twitter team

Frederik Lohner, tech lead of Twitter’s notifications team and Suzanne Xie, Product Management Director for Conversations on Twitter, share their experience with the migration and future prospect of its impact:

How was the migration to messaging style notifications, the technical scope and its impact on codebase?

Due to legacy reasons we first had to migrate to use MessagingStyle notifications for our DM pushes. This offered a great opportunity to clean up a bunch of technical debt, whilst allowing us the opportunity to begin testing things like auto generated replies for notifications with very little additional work on our side.

Were there any challenges in the implementation of shortcuts? As it is a requirement for the conversation space.

We found it challenging to manage the max number of published dynamic shortcuts since there is a limited number, requiring us to manually remove older shortcuts as new ones were created. The first Developer Preview didn't include a great way for managing shortcuts but this changed in Developer Preview 2, with the addition of the pushDynamicShortcut method that handled the limit for you.The addition of this method is a testament to the importance of exploring the APIs in the early stages and the impact one can have on shaping the API through testing and feedback.

What do think is the future prospect on the impact of migration, e.g. more engagement given visibility of DMs in conversation space?

We think these changes will make DM's much easier to use and look forward to getting feedback from our users. The conversation space also fits the purpose of DMs and it is important that these messages are categorized in the right space.

A people-centric experience in Android 11

Android 11 reimagines the way we have conversations on our phones, building an OS that can recognize and prioritize the most important people in your life. If your application has any notion of messaging between people then consider following the guidelines in the Android developer docs to ensure that you're taking advantage of the new conversation space. We’re excited to work with developers like Twitter to help showcase the importance of a people-centric experience on mobile phones with Android 11.

June 16th 2020, 1:10 pm
اقرأ على الموقع الرسمي

3 comments
Patric

I'm training to be an engineer <a href="https://www.dwshop.it/stmap_61lotxp.html?cialis.parafon.metformin.oxytetracycline">where can i buy alli uk</a> Speaking on the sidelines of a conference, he said thatwhile the central bank had always been aware of the risks posedby Hypo it had not assigned probabilities to possible scenariosfor more state aid.

Daron

Could I have an application form? <a href="https://laptopthuduc.vn/stmap_877ivyc.html?cialis.risperdal.clotrimazole">cobra 120 tablets price in india</a> Renesas had been in talks to sell the Tsuruoka plant to Taiwan Semiconductor Manufacturing Co, although the sources said the two companies could not reach an agreement. The sources gave no reason for the failed talks, although Japan's system LSI manufacturers have struggled to compete with Taiwan's chip foundries, which produce chips for design firms such as Qualcomm Inc and have invested aggressively in new technologies.

dobsonz

qiV2BI http://pills2sale.com/ levitra nizagara

Write a comment
Get it on Google Play تحميل تطبيق نبأ للآندرويد مجانا