Developing iMessage Extension for iOS App

TRUETECH is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
Developing iMessage Extension for iOS App
Medium
~3-5 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1052
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

iMessage Extension Development for iOS

An iMessage extension is a separate Extension target within an iOS application that embeds into the Messages app. When the user opens the app drawer under the message input field and launches your mini-interface directly in the conversation. Stickers, interactive cards, shared games, data transfer through messages—all without leaving the chat.

Two Modes: Sticker Pack vs MSMessagesAppViewController

Sticker Pack — the simplest option. Created without code: add an Extension target of type "Sticker Pack Application", drag PNG/APNG/GIF files into Stickers.xcassets. Apple generates the UI automatically. Sizes: Small (100×100 pt), Regular (136×136 pt), Large (206×206 pt). APNG for animation—up to 500 KB, GIF—up to 25 MB, but GIF is undesirable due to quality.

MSMessagesAppExtension — a full-featured Extension with UIKit/SwiftUI. Here, MSMessagesAppViewController is the entry point. Two display modes: Compact (bottom of screen, ≈225 pt height) and Expanded (nearly full screen). Switch via requestPresentationStyle(.expanded).

Most importantly: MSMessage and MSMessageLayout. This is the message object inserted into the chat. It has a URL (with custom app scheme), MSMessageTemplateLayout with image, title, subtitle. When the recipient taps such a message, they get the same extension (if installed) or an invitation to install the app.

Issues Not Discovered Immediately

Shared state between two participants. To transfer data (game move, poll choice), you cannot use UserDefaults or Keychain directly—the recipient has a different device. Data is encoded in the message URL through query parameters or base64 in the path. URL size is limited—don't overuse it.

Pattern: MSMessage.url = URL(string: "yourapp://state?data=\(encodedState)"). The recipient parses the URL in willBecomeActive(with:).

App Group and shared container. The Extension is isolated from the main application by default. If you need to read application data in the extension (custom stickers, authorization), configure App Group: use the same group.com.yourapp.shared in Capabilities for both the main target and extension. Then use UserDefaults(suiteName:) and FileManager.containerURL(forSecurityApplicationGroupIdentifier:).

MSMessagesAppViewController doesn't support all UIKit components. UIActivityViewController inside an iMessage Extension crashes—you can't share content via the system share. UIImagePickerController also doesn't work. Use PHPickerViewController for image selection.

Memory. Extensions operate under strict memory limits (~100 MB). Loading heavy resources or image caches without limits is a direct path to EXC_RESOURCE crashes. Use NSCache with countLimit and totalCostLimit.

What to Check During Development

  • Extension works correctly in compact and expanded mode
  • Messages decode correctly on the recipient's side (test with two real devices)
  • App Group is configured if main application data is needed
  • Stickers are correct sizes and formats, animations don't exceed limits
  • Extension doesn't crash when receiving a message without the application installed

Timeline

Sticker Pack without code: 1–3 days (design + build). iMessage Extension with interactive cards: 3–5 weeks. Multiplayer game or complex data exchange: 6–10 weeks. Cost is calculated after analyzing interaction scenarios.