Abc-Sdk.Core
2.0.21
dotnet add package Abc-Sdk.Core --version 2.0.21
NuGet\Install-Package Abc-Sdk.Core -Version 2.0.21
<PackageReference Include="Abc-Sdk.Core" Version="2.0.21" />
<PackageVersion Include="Abc-Sdk.Core" Version="2.0.21" />
<PackageReference Include="Abc-Sdk.Core" />
paket add Abc-Sdk.Core --version 2.0.21
#r "nuget: Abc-Sdk.Core, 2.0.21"
#:package Abc-Sdk.Core@2.0.21
#addin nuget:?package=Abc-Sdk.Core&version=2.0.21
#tool nuget:?package=Abc-Sdk.Core&version=2.0.21
Apple Business Chat SDK
A .NET SDK for integrating with Apple Business Chat (Messages for Business). It enables Customer Service Platforms (CSPs) to communicate with customers on iPhone, iPad, Mac, and Apple Watch through iMessage — sending text, rich links, interactive messages, forms, Apple Pay requests, and more.
Installation
dotnet add package Abc-Sdk
For webhook support in ASP.NET Core:
dotnet add package Abc-Sdk.Controllers
Authentication
using Abc;
var credentials = Auth.CreateCredentials(
cspId: "your-csp-id",
secret: "your-base64-secret",
businessChatId: "your-business-chat-id"
);
All Message.* methods accept an optional IAbcCredentials credentials parameter, making them thread-safe for concurrent multi-tenant use.
Usage
Sending Messages
await Message.SendMessage("Hello!", recipientId, credentials);
Typing Indicators
await Message.SendMessageTyping(typing: true, recipientId, credentials);
Quick Replies
var items = new List<QuickReplyItem>
{
new QuickReplyItem { Title = "Yes" },
new QuickReplyItem { Title = "No" }
};
await Message.SendMessageQuickReply("Do you agree?", items, recipientId, credentials);
Rich Links
byte[] imageData = File.ReadAllBytes("preview.jpg");
await Message.SendMessageRichLinkImage(
linkUrl: "https://example.com/article",
data: imageData,
mimeType: "image/jpeg",
title: "Read this article",
recipientId: recipientId,
credentials: credentials
);
File Attachments
Files are automatically encrypted (AES-CTR), uploaded, and sent as message attachments.
await Message.SendFile("/path/to/document.pdf", recipientId, credentials: credentials);
Interactive Messages
Use the dedicated factories to construct list pickers, time pickers, and forms:
var listPickerMessage = MessageListPickerFactory.CreateListPickerMessage(
businessChatId, recipientId, sections, receivedMessage, imageData, title, subtitle);
await Message.SendMessage(listPickerMessage, credentials);
Apple Pay
var applePayMessage = MessagePaymentFactory.CreateApplePayMessage(
businessChatId, recipientId, receivedMessage, paymentRequest, endpoints, imageData, title, subtitle);
await Message.SendMessageApplePay(
message: applePayMessage,
merchantCertificate: cert,
merchantName: "My Store",
merchantId: "merchant.com.example",
domainName: "example.com",
paymentGatewayUrl: "https://example.com/paymentGateway"
);
Receiving Webhooks
Use Abc.Controllers to validate and parse inbound messages from Apple (gzip-compressed, JWT-signed):
using Abc.Controllers.Helper;
if (!AuthHelper.IsAuthorizationValid(credentials, headerMessage))
return Unauthorized();
License
See the LICENSE file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- BouncyCastle.Cryptography (>= 2.6.2)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- Newtonsoft.Json (>= 13.0.4)
- System.IdentityModel.Tokens.Jwt (>= 8.17.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Abc-Sdk.Core:
| Package | Downloads |
|---|---|
|
Abc-Sdk
Apple Business Chat SDK. It is a .NET C# library used to integrate directly with customers using iPhone, iPad, Mac, and Apple Watch. Allows you to send and receive notifications to easily chat, get assistance, schedule appointments, and complete purchases with Apple Pay, right from within Messages. |
|
|
Abc-Sdk.Controllers
Apple Business Chat SDK. It is a .NET C# library used to integrate directly with customers using iPhone, iPad, Mac, and Apple Watch. Allows you to send and receive notifications to easily chat, get assistance, schedule appointments, and complete purchases with Apple Pay, right from within Messages. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.21 | 1,376 | 5/4/2026 |
| 2.0.19 | 136 | 5/4/2026 |
| 2.0.18 | 164 | 4/9/2026 |
| 2.0.17 | 149 | 4/9/2026 |
| 2.0.16 | 149 | 4/9/2026 |
| 2.0.15 | 1,430 | 3/13/2025 |
| 2.0.14 | 376 | 3/3/2025 |
| 2.0.13 | 269 | 3/3/2025 |
| 2.0.12 | 280 | 3/3/2025 |
| 2.0.11 | 305 | 11/29/2024 |
| 2.0.10 | 275 | 11/29/2024 |
| 2.0.9 | 347 | 10/18/2024 |
| 2.0.8 | 286 | 10/8/2024 |
| 2.0.6 | 301 | 9/20/2024 |
| 2.0.5 | 273 | 9/19/2024 |
| 2.0.3 | 302 | 9/11/2024 |
| 2.0.2 | 280 | 9/9/2024 |
| 2.0.1 | 1,490 | 11/16/2022 |
| 2.0.0 | 1,157 | 11/16/2022 |
| 1.0.27 | 1,028 | 1/4/2022 |
Alpha version with limited features available.