CingChat for iPhone · iOS 0.15.0 (15) Development prompt · §04 · Sharing a phone contact in chat Add Contact to the existing iPhone attachment menu. Use the ordinary text draft and send path, retaining the original clientId across retries. In Android 1.0.83, choosing a number appends to the draft and preserves the selected reply. The shared server format is POST /v1/chats/{id}/messages with text and an optional replyTo. Present CNContactPickerViewController from ContactsUI. Allow selection of a single phone-number property and let the user choose the number if a contact has several. Use the system picker without requesting access to the complete address book. Handle cancellation or delivery of the selected property exactly once. When the picker returns, verify the current account, session, chat, membership and right to send. Restore focus to the message field. Provide Russian and English labels and actions accessible to VoiceOver. Read the display name and selected phone-number string. Replace CR and LF with spaces in each value and trim leading and trailing whitespace. Require at least one decimal digit in the number. Preserve plus signs, internal spaces, hyphens and parentheses as supplied by the system. Insert the name, a newline and the number. For an empty name, insert just the number. Separate a nonempty draft from the contact block with two newlines. Add no labels, links, vCard or CingChat contact record. Preserve the selected reply. The complete insertion must fit the Android and server limit of 8000 UTF-16 code units. If it exceeds the limit, explain the error and keep the original draft intact. Local persistence failure must neither lose text nor send it. Cover empty names, numbers without digits, line breaks in selected fields, empty and nonempty drafts, exactly 8000 and 8001 UTF-16 units and characters outside the Basic Multilingual Plane. Cover cancellation, permissions changing, switching chats while the picker is open, duplicate callbacks and a persisted draft after reopening. Use synthetic contacts only. On two hosted iPhone simulators, select one of two numbers through the system picker and edit it before sending. At the network layer, confirm there is no outgoing request when a number is selected and a single message after an explicit send with a lost acknowledgement. Compare text and reply in both directions between iPhone and the Android 1.0.83 networking client. Report native UI checks, networking checks and physical-device checks separately. Android selection and formatting https://github.com/cingchat1/cingchat/blob/14284dee1db4ece424f07f8376d770c0b396e23d/core/src/main/java/com/cinggroup/core/ContactPhone.kt Android 1.0.83 checks https://github.com/cingchat1/cingchat/blob/14284dee1db4ece424f07f8376d770c0b396e23d/core/src/androidTest/java/com/cinggroup/core/ContactPhoneInstrumentedTest.kt iPhone system picker https://developer.apple.com/documentation/contactsui/cncontactpickerviewcontroller