CingChat for iPhone · iOS 0.16.0 (16) Development prompt · §04 · Camera in chat Use the current app and the photo and video formats accepted in 0.9.0 and 0.10.0. Use CingChat Android 1.0.83 at commit 14284dee1db4ece424f07f8376d770c0b396e23d as the behavioral reference. Both camera entry points must use one capture screen and lifecycle. Implement photo capture and video recording with sound, elapsed time, stop and cancel. Hand the result to the existing media editors and send queue. Preserve the gallery and other attachments. Use documented iOS camera and microphone APIs and localized permission purpose strings. Request camera permission on entry and microphone permission when sound recording is needed. Handle authorized, denied, restricted and unavailable inputs. If microphone access is unavailable, explain why recording with sound is unavailable and keep photo mode usable if the camera is authorized. Open system settings only on a user action. Mode changes, repeated taps, cancellation or interruption must not create a second recording or a parallel send. Release devices and clean up temporary files on dismissal. Check that the camera stops using the device when the app is backgrounded. Preserve orientation and synchronized video and audio. Check posting rights and the original account, session, chat and membership when opening the camera, receiving a capture and confirming the attachment. Discard a late result after sign-out, chat switch or access revocation. Only a confirmed send goes to the network. Use existing attachment quality choices, limits, draft handling, caption, replyTo and retry with the original clientId. Retaking or cancelling should preserve unrelated drafts and the selected reply. Write to the shared photo library only after a separate user action. For hosted simulators use repeatable frame and audio input in the test configuration and document the exact boundary of that test. Cover both entry points, cancellation, each denied permission, unavailable hardware, ending a recording and dismissing during processing. Verify understandable UI and VoiceOver states, cancelling before send, an acknowledgement failure and one delivered message with the original identifier. Have the Android 1.0.83 networking client retrieve the sent photo and video. Check lengths and SHA-256 for originals. For compressed media verify decoding, orientation, duration and sound. Forward a captured photo to another conversation using the existing forward action. A recipient who belongs only to the destination chat should see the caption and retrieve its copy without accessing the original conversation. On a physical iPhone test optical capture, recording and playback of speech, system permission sheets and returning from the background. Report the source SHA, job and attempt for each model, results, and genuine interface captures. Identify the device checks that remain open. Android 1.0.83 camera https://github.com/cingchat1/cingchat/blob/14284dee1db4ece424f07f8376d770c0b396e23d/core/src/main/java/com/cinggroup/core/ChatCamera.kt Attachment flow and preview https://github.com/cingchat1/cingchat/blob/14284dee1db4ece424f07f8376d770c0b396e23d/core/src/main/java/com/cinggroup/core/ChatMedia.kt Composer and camera entry point https://github.com/cingchat1/cingchat/blob/14284dee1db4ece424f07f8376d770c0b396e23d/core/src/main/java/com/cinggroup/core/ChatScreens.kt