OLD | NEW |
(Empty) | |
| 1 # iOS Application Specific Services in Chrome for iOS |
| 2 |
| 3 [UIActivity][1] is an abstract class for implementing app-specific services |
| 4 such as Share (to social media), Print, Reading List, and Password Management |
| 5 app extensions. |
| 6 |
| 7 ## Adding iOS Password Managers App Extensions |
| 8 |
| 9 Chrome for iOS recognizes an action extension is a Password Manager app |
| 10 extension in one of the following two ways. |
| 11 |
| 12 1. By Bundle ID match. If the bundle ID for the app extension contains |
| 13 the substring `find-login-action`, it will be handled as a Password |
| 14 Manager app extension. |
| 15 |
| 16 1. By explicitly listing in [`activity_type_util.mm`][2]. The anonymous |
| 17 namespace function `IsPasswordManagerActivity()` in this file contains |
| 18 a static structure listing all the Password Manager app extensions |
| 19 known to Chrome for iOS. The first field is a string containing either |
| 20 the full bundle ID or the leading portion of the bundle ID. The second |
| 21 field is a flag to indicate whether a full bundle ID is expected or |
| 22 if the string is intended to be a prefix for matching bundle IDs. |
| 23 |
| 24 The first option is recommended because it does not require any code |
| 25 changes to Chrome. If an app extension meets the first condition, it |
| 26 works with current and previous versions of Chrome for iOS (since early |
| 27 2016). If for any reasons that an app extension cannot change its |
| 28 bundle ID, option 2 may be used. To add support to Chrome for iOS, submit |
| 29 a changelist similar to [this][3] for review. |
| 30 |
| 31 |
| 32 [1]: https://developer.apple.com/reference/uikit/uiactivity?language=objc |
| 33 [2]: ./activity_type_util.mm |
| 34 [3]: https://codereview.chromium.org/2820113002/ |
OLD | NEW |