Repository navigation
4.0.1.1
What's changed
First release of the cross-platform façade over the SFMC SDK core bindings.
- One API on both platforms:
SfmcSdkClientwith awaitableInitializeAsync,Identity
(profile id / contact key, string attributes) andTrackCustomEvent, over
SFMCSDK.Net.Android 3.1.1.1
andSFMCSDK.Net.iOS 4.0.1.2,
pinned exactly. The version names the iOS line (SFMCSDK 4.0.1); the Android side is sfmcsdk 3.1.1. - The platform asymmetries are absorbed, not papered over: Android's
configurecallback
becomes an await with an options-driven timeout linked to the caller'sCancellationToken;
iOS completes after the state machine settles, because with zero modules configured its
completion block never fires - measured upstream behaviour, encoded in the binding
repository's device tests and documented inPlatforms/Apple. - Sharp edges filed off: a custom event name the native SDK rejects throws
ArgumentExceptionon both platforms (raw Android returns null and drops the event; raw iOS
returns nil), and a secondInitializeAsyncthrows the one-shot guard instead of racing a
native configure that upstream forbids repeating. - Nine target frameworks -
net8.0,net9.0,net10.0, each with-androidand-ios
heads. The plain assets restore anywhere and throwPlatformNotSupportedExceptionnaming the
platform heads, so shared class libraries, unit tests and a MAUI app's Windows head reference
the package with no conditionals. - Nothing is hidden: the raw namespaces
Com.Salesforce.Marketingcloud.Sfmcsdkand
SFMCSDKarrive with the package on their platform - module configuration (MobilePush and
friends), consent, the event bus and the rest stay oneusingaway. - Licence is plain
MIT: this package ships no native binaries; Salesforce's BSD-3-Clause
arrives with the binding packages, each of which declares and packs both texts.
Packages
Built against SFMCSDK.Net.iOS 4.0.1.2 and SFMCSDK.Net.Android 3.1.1.1 — SFMCSDK 4.0.1 on iOS and sfmcsdk 3.1.1 on Android.
The version names the iOS line, because Salesforce releases the two native
SDKs on separate cadences and they never share a version number. The fourth
component is this repository's own revision.
| Package | Target frameworks | NuGet |
|---|---|---|
SFMCSDK.Net |
net8.0, net8.0-android34.0, net8.0-ios18.0, net9.0, net9.0-android35.0, net9.0-ios18.0, net10.0, net10.0-android36.0, net10.0-ios26.0 |
4.0.1.1 |
dotnet add package SFMCSDK.Net --version 4.0.1.1
Licensing
The code in this repository is MIT, and that is the whole package. It depends
on SFMCSDK.Net.Android and SFMCSDK.Net.iOS, whose packages ship native SFMC
SDK artifacts built by Salesforce; each of those declares
MIT AND BSD-3-Clause and ships both texts under licenses/.