Nojoom 1.0.15
dotnet add package Nojoom --version 1.0.15
NuGet\Install-Package Nojoom -Version 1.0.15
<PackageReference Include="Nojoom" Version="1.0.15" />
<PackageVersion Include="Nojoom" Version="1.0.15" />
<PackageReference Include="Nojoom" />
paket add Nojoom --version 1.0.15
#r "nuget: Nojoom, 1.0.15"
#:package Nojoom@1.0.15
#addin nuget:?package=Nojoom&version=1.0.15
#tool nuget:?package=Nojoom&version=1.0.15
Nojoom Life SDK for .NET MAUI
Official .NET MAUI bindings for the Nojoom Life SDK. A single package embeds the Nojoom offers / coupons experience into a MAUI app on both Android and iOS.
You give the SDK a session token; it renders its entire UI itself — home, offer categories, merchant listings, offer details with maps, coupons, favourites, redemption (QR / code), and contacts. Your app builds none of those screens.
| Target | Included |
|---|---|
net10.0-android |
Managed binding + all runtime AARs (Jetpack Compose, Coil, Google Maps, Retrofit/OkHttp, Nimbus JWT). Huawei Map Kit is host-supplied — see below. |
net9.0-ios |
Managed binding + native NojoomLifestyles.xcframework (device + simulator slices) |
One PackageReference covers both platforms.
Install
dotnet add package Nojoom --version 1.0.15
<PackageReference Include="Nojoom" Version="1.0.15" />
What's new in 1.0.15
- Huawei: fixes the blank map on Huawei (HMS) devices. A missing Map Kit key no longer
crashes the app. New optional
huaweiMapApiKeyparameter (see Huawei (HMS) devices below). - Both: the Favourites count no longer resets to 0 while scrolling to the end of the list.
- Android: only one copy of the SDK can be open at a time. The selected bottom tab's label is now red, matching its icon. The favourites empty-state text now matches iOS.
- Both: Copy buttons (Coupons tab, and the offer-detail screen on Android) now show "Copied" for 2 seconds after a tap.
- Android: no grey press highlight on buttons and tappable items, matching iOS.
- iOS: while searching, the bottom tab bar no longer rides up on the keyboard, and switching tabs closes the keyboard.
- iOS: with
BlockScreenCapture = true, screenshots and screen recordings of SDK screens now come out blank. - Both: a rejected token now shows "We couldn't verify your session. Please sign in again."
instead of "Your session has expired". A token from the wrong environment (UAT vs production)
is rejected too, and the old wording was wrong for that case. If you see this message at
launch, check that the token and
baseUrlcome from the same environment. - No public API changes. It is a drop-in upgrade from 1.0.14.
Requirements
- .NET 9 with the MAUI /
androidandiosworkloads. - Android minimum API level 24; iOS minimum 13.0.
Host-app configuration
These cannot be carried by the package and must be supplied by the consuming app.
Android — required NuGet pins (build/runtime conflict fix)
com.google.gson and a few AndroidX versions conflict with what Microsoft.Maui.Core pins. Add
these to your app project or you'll hit NU1107 at build or a crash at runtime:
<ItemGroup Condition="$(TargetFramework.Contains('-android'))">
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData" Version="2.11.0.1" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Core" Version="2.11.0.1" />
<PackageReference Include="Xamarin.AndroidX.SavedState.SavedState.Ktx" Version="1.5.0.1" />
</ItemGroup>
The NU1608 "version outside constraint" warnings these produce are expected and benign.
(Non-MAUI Xamarin.Android hosts must also add the GoogleGson NuGet ≥ 2.10.1 — a MAUI app
already provides it transitively.)
The SDK's networking stack also needs com.squareup.okio (Okio) present at runtime. Apps using
Firebase Analytics/Messaging already get it transitively via Xamarin.AndroidX.DataStore.*; if
yours doesn't, add Square.OkIO.JVM (≥ 3.17.0.1) yourself.
Apps that also use Square.OkHttp3 / Square.Retrofit2: no action needed. When another jar
in your app already provides the OkHttp/Retrofit classes, the package's build step uses that copy
instead of its bundled one (avoids R8 Type okhttp3.… is defined multiple times). If your
Square.OkHttp3 is older than 4.12 you'll see warning NOJOOM001 — update it to ≥ 4.12.0.10.
Xamarin.AndroidX.NavigationEvent (supplies androidx.navigationevent.* for the SDK's
NavHost) ships as a direct package dependency — no host action needed.
Crash on launch — IllegalStateException: Module with the Main dispatcher is missing: this
means your app resolved a different version of Xamarin.KotlinX.Coroutines.Android than
Xamarin.KotlinX.Coroutines.Core.Jvm (usually because another dependency — Firebase, Room,
WorkManager, anything that touches Kotlin coroutines — pulled one of the two to a different
version than the other). Pin both explicitly to the same version in your app.
Android — Google Maps API key (required)
The SDK shows a Google Map on offer-detail screens. Add your key to the host
AndroidManifest.xml (play-services-maps reads it from the host, never the SDK). Without it the
app hard-crashes with IllegalStateException: API key not found when a map opens.
<application ...>
<meta-data android:name="com.google.android.geo.API_KEY" android:value="YOUR_MAPS_KEY" />
</application>
Android — Huawei (HMS) devices (optional)
On devices without Play Services the SDK renders maps with Huawei Map Kit. Huawei Map Kit is
not bundled in this package (since 1.0.14) — bundling it clashed with Huawei's own NuGet in
Huawei-flavoured apps (AMM0000 ... hms.client.service.name:base 6.12.0.300 vs 6.8.0.300).
For Huawei support, reference it in the host app (skip if you already do):
<ItemGroup Condition="$(TargetFramework.Contains('-android'))">
<PackageReference Include="Huawei.Hms.Maps" Version="6.11.2.301" />
</ItemGroup>
Any Huawei.Hms.Maps ≥ 6.11.0.304 works. Then give Map Kit your AppGallery Connect Map Kit
API key (AGC → your app → Project settings → API key). .NET apps have no AGConnect Gradle plugin,
so use any one of these (since 1.0.15):
// a) Pass it to the SDK (last, optional parameter)
var intent = NojoomActivity.CreateIntent(this, token, baseUrl, blockScreenCapture,
sessionTimeoutMinutes, diagnosticsLogging, integrityPolicyBlocks,
huaweiMapApiKey: "<your Map Kit API key>");
// b) Or set it once at startup — Platforms/Android/MainApplication.cs
public override void OnCreate()
{
base.OnCreate();
Huawei.Hms.Maps.MapsInitializer.SetApiKey("<your Map Kit API key>");
}
- Or ship
agconnect-services.jsonas an asset (<AndroidAsset Include="Platforms\Android\Assets\agconnect-services.json" />); the SDK readsclient.api_keyfrom it. Setting the key only on your own map screen is not enough, because the user may open Nojoom first. Without any key the map shows "Map is not available on this device" and nothing crashes. The SDK callsMapsInitializer.Initializeitself. In AppGallery Connect, enable Map Kit and register the SHA-256 fingerprint of every keystore you sign with (debug, UAT, release). Builds withoutHuawei.Hms.Mapsneed nothing — the SDK detects HMS is absent and uses Google Maps.
iOS
No extra references or pins — the native NojoomLifestyles.xcframework ships inside the package
and links automatically.
Initialize & launch
The one runtime input is a session token from your own login flow. No API key or encryption
keys are needed — those are embedded in the SDK. Initialization is async — only show the SDK UI
after onSuccess.
Which backend does the SDK talk to?
If you do nothing, the SDK talks to the UAT environment
(https://uat.aideasolution.com/api/). For production, pass
https://prod.aideasolution.com/api/ as one extra argument exactly where shown in the two
code blocks below (CreateIntent on Android, Initialize on iOS). There's nothing else to
configure — it's that one line, right where you already call the SDK.
Both uat.aideasolution.com and prod.aideasolution.com are certificate-pinned inside the
SDK, so no host-side network-security config is required for either.
⚠️ One rule: wherever you get the session
tokenfrom (your login API, or a test endpoint) must be the same backend you pass here. A token from one backend is always rejected on a different one — the SDK reports that asonSessionExpired/onError.
Android — launch NojoomActivity
using Com.Nojoom.Lifestyles.Public;
using Microsoft.Maui.ApplicationModel;
var activity = Platform.CurrentActivity;
// Callbacks can't ride inside a launch Intent, so register them via the SetOn* statics
// BEFORE StartActivity. onDismiss fires when the user taps the SDK's ✕ (Home tab only).
// Re-register before every launch — onDestroy() clears these registrations.
NojoomActivity.SetOnDismiss(new DismissListener(() => { /* e.g. refresh your own screen */ }));
// 2 arguments (token only) = talks to UAT automatically. To use a different backend,
// add the URL as a 3rd argument, e.g.:
// NojoomActivity.CreateIntent(activity, token, "https://prod.aideasolution.com/api/")
var intent = NojoomActivity.CreateIntent(activity, token);
activity.StartActivity(intent); // NojoomActivity self-initializes and renders its own UI
// SAM-interface adapter — INojoomDismissListener needs a real Java object to cross JNI.
class DismissListener : Java.Lang.Object, INojoomDismissListener
{
readonly Action _onDismiss;
public DismissListener(Action onDismiss) => _onDismiss = onDismiss;
public void OnDismiss() => _onDismiss();
}
Don't call
NojoomSDK.Initialize()yourself before this —NojoomActivityinitializes itself internally from the config carried in theIntent. Calling both leads to two competing initializations racing each other.
iOS — initialize, present on success
using NojoomLifestyles;
using Microsoft.Maui.ApplicationModel;
using UIKit;
NojoomSDK.Initialize(
token,
baseUrl: null, // null = UAT automatically. Replace with e.g. "https://prod.aideasolution.com/api/"
// to use a different backend — that's the only change needed.
onSuccess: () => MainThread.BeginInvokeOnMainThread(() =>
{
// Grab the app's top-most view controller to present from.
var root = UIApplication.SharedApplication.KeyWindow?.RootViewController;
while (root?.PresentedViewController is not null)
root = root.PresentedViewController;
var vc = NojoomSDK.MakeContentViewController();
vc.ModalPresentationStyle = UIModalPresentationStyle.FullScreen;
root?.PresentViewController(vc, animated: true, completionHandler: null);
}),
onError: message => { /* show error, prompt re-login */ },
onSessionExpired: null,
onOfferRedeemed: null);
Session callbacks (optional, both platforms)
The SDK raises five host callbacks. In the native Kotlin/Swift API they are all just
parameters of initialize, side by side. The .NET binding keeps them together too — as the
five methods of INojoomSDKCallback (Android direct-init) — with one shape difference
forced by the binding layer, noted in the last column:
| Callback | When | Android via NojoomActivity |
Android via NojoomSDK.Initialize(context, config, callback) |
iOS |
|---|---|---|---|---|
onSuccess |
SDK ready | handled internally | INojoomSDKCallback.OnSuccess() |
Initialize arg |
onError |
init failed | Activity finishes itself | INojoomSDKCallback.OnError(msg) |
Initialize arg |
onSessionExpired |
session token dead & the SDK's own refresh failed, or idle timeout | SetOnSessionExpired(listener) |
INojoomSDKCallback.OnSessionExpired() |
Initialize arg |
onOfferRedeemed |
offer redeemed | SetOnOfferRedeemed(listener) |
INojoomSDKCallback.OnOfferRedeemed(token) |
Initialize arg |
onDismiss |
user tapped ✕ | NojoomActivity.SetOnDismiss(listener) — a static call, not an Initialize/CreateIntent arg |
INojoomSDKCallback.OnDismiss() — same interface, right beside the others |
NojoomSDK.SetOnDismiss(handler) — a separate static call, not an Initialize arg |
The SDK manages session-token refresh itself.
verifyUserhands it a backend session token, which it refreshes against the backend automatically on a 401/403. If a refresh is impossible the SDK firesonSessionExpired. Hosts only ever supply the initial Ooredoo token — there is no hostonRefreshTokencallback on either platform.
Why onDismiss looks different in .NET:
NojoomActivityregisters it the same way asonOfferRedeemed/onSessionExpired— a staticSetOnDismiss(listener)call, since a callback can't ride inside a launchIntent.NojoomActivityforwards it into the SDK's ownonDismissand fires it right before the Activity finishes itself. CallSetOnDismissagain before every subsequent launch —onDestroy()clears all threeSetOn*registrations, so a second launch without re-registering finishes the Activity with nothing delivered, which looks identical to a missing callback. Also note the ✕ only appears on the Home tab (detail screens show Back instead), and system back / swipe-back finishes the Activity directly without firingonDismiss— only the ✕ does.- iOS: the Objective-C bridge exposes
onDismissas a separatesetOnDismiss:selector rather than aninitializeargument. The Swift-nativeNojoomSDK.initializestill takes it as a parameter, like Kotlin — only the ObjC/.NET surface splits it out. - Android
INojoomSDKCallback: no difference —OnDismiss()is the fifth method on the same interface as the other four. Implement it exactly likeOnOfferRedeemed.
// iOS — the close button, hooked separately (before presenting MakeContentViewController)
NojoomSDK.SetOnDismiss(() => MainThread.BeginInvokeOnMainThread(() =>
UIApplication.SharedApplication.KeyWindow?.RootViewController?
.DismissViewController(true, null)));
Registering redeem / session-expired on the NojoomActivity path
Register these before launching NojoomActivity:
NojoomActivity.SetOnOfferRedeemed(new RedeemListener(token => { /* forward token to backend */ }));
NojoomActivity.SetOnSessionExpired(new SessionExpiredListener(() => { /* prompt re-login */ }));
RedeemListener and SessionExpiredListener are small adapter classes you add to your app —
each wraps a C# delegate in the SDK's Java interface and must extend Java.Lang.Object to cross
the JNI boundary. Paste these classes as-is:
using Com.Nojoom.Lifestyles.Public;
// Adapts an Action<string> to INojoomRedeemListener.
sealed class RedeemListener : Java.Lang.Object, INojoomRedeemListener
{
readonly Action<string> _onOfferRedeemed;
public RedeemListener(Action<string> onOfferRedeemed) => _onOfferRedeemed = onOfferRedeemed;
public void OnOfferRedeemed(string token) => _onOfferRedeemed(token);
}
// Adapts an Action to INojoomSessionExpiredListener.
sealed class SessionExpiredListener : Java.Lang.Object, INojoomSessionExpiredListener
{
readonly Action _onSessionExpired;
public SessionExpiredListener(Action onSessionExpired) => _onSessionExpired = onSessionExpired;
public void OnSessionExpired() => _onSessionExpired();
}
iOS — filling in the session callbacks
The iOS example above already uses the full Initialize overload (with baseUrl) but passed
null for the two optional callbacks. Fill them in like this:
NojoomSDK.Initialize(
token,
baseUrl: null, // or "https://prod.aideasolution.com/api/" — same as the example above
onSuccess: () => { /* present MakeContentViewController() */ },
onError: message => { /* show error */ },
onSessionExpired: () => { /* prompt re-login */ },
onOfferRedeemed: redeemToken => { /* forward opaque token to your backend */ });
// The close (✕) button is separate — it is NOT a parameter of Initialize:
NojoomSDK.SetOnDismiss(() => { /* dismiss/pop MakeContentViewController() */ });
Pass null for any callback you don't need. SetOnDismiss is optional too — without it the
SDK's view controller dismisses itself.
Behaviour notes
- The SDK owns the whole screen. Tapping its close (✕) button: via
NojoomActivitythe Activity finishes itself; viaNojoomSDK.Initialize(context, config, callback)yourINojoomSDKCallback.OnDismiss()fires; on iOS yourNojoomSDK.SetOnDismisshandler fires (or the view controller pops itself if you set none). The SDK stays initialised after a dismiss. - Host app-identity validation is enforced in release builds (Android
om.ooredoo; iOSom.nawras.mynawras/com.cts.selfcare.ooredoo). It is skipped for debuggable Android hosts and the iOS Simulator, so day-to-day integration is unaffected. - Device-integrity checks run in log-only mode by default (never deny service); opt into
blocking with
NojoomConfig.integrityPolicy = NojoomIntegrityPolicy.Block(Android) /NojoomSDKConfig.IntegrityPolicyBlocks = true(iOS). - Screenshot/recording blocking is off by default — enable it per launch with
NojoomConfig.blockScreenCapture = true/NojoomActivity.CreateIntent's 4th argument /NojoomSDKConfig.BlockScreenCapture = true. When it is on, screenshots and screen recordings of SDK screens come out blank on both platforms (iOS since 1.0.15). - Only one
NojoomActivitycan be open at a time (since 1.0.15). A repeat start, such as a double-tap or a token call that fires twice, goes to the copy that is already open instead of opening a second one. - The session token carries a ~1-hour backend expiry plus a configurable idle timeout
(
sessionTimeoutMinutes, default0— disabled). Both are handled by the SDK; expiry surfaces asonSessionExpired.
Configuration — both platforms
Android. NojoomActivity.CreateIntent carries the full config:
NojoomActivity.CreateIntent(activity, token,
baseUrl: "https://…/api/", blockScreenCapture: false,
sessionTimeoutMinutes: 30, // example: enables a 30-minute idle timeout; default is 0 (disabled)
diagnosticsLogging: false, integrityPolicyBlocks: false);
If you call NojoomSDK.Initialize(context, config, callback) directly (only needed if you embed
NojoomSDK.Content() in your own Compose UI — see the warning above about not combining it with
NojoomActivity), construct a NojoomConfig
— new NojoomConfig(token), new NojoomConfig(token, baseUrl), or the full named ctor
(token, blockScreenCapture, sessionTimeoutMinutes, diagnosticsLogging, integrityPolicy,
playIntegrityCloudProjectNumber, baseUrl) — all with working C# named arguments.
iOS. NojoomSDKConfig gives full config parity with Android's NojoomConfig:
NojoomSDK.Initialize(
new NojoomSDKConfig { Token = token, BaseUrl = "https://…/api/",
SessionTimeoutMinutes = 30, // example: enables a 30-minute idle timeout; default is 0 (disabled)
DiagnosticsLogging = false,
BlockScreenCapture = false, IntegrityPolicyBlocks = false, AppAttestEnabled = false },
onSuccess, onError, onSessionExpired, onOfferRedeemed);
The lighter Initialize(token, …) overloads still work if you don't need the full config.
API surface
Android (Com.Nojoom.Lifestyles.Public) — NojoomActivity.CreateIntent(context, token[, baseUrl[, blockScreenCapture[, sessionTimeoutMinutes, diagnosticsLogging, integrityPolicyBlocks]]]),
SetOnOfferRedeemed, SetOnSessionExpired, SetOnDismiss; NojoomSDK.Initialize(context, config, callback) / IsInitialized / Reset; NojoomConfig, NojoomIntegrityPolicy;
INojoomSDKCallback (OnSuccess/OnError/OnSessionExpired/OnOfferRedeemed/OnDismiss),
INojoomRedeemListener, INojoomSessionExpiredListener, INojoomDismissListener. (NojoomSDKView
is intentionally not bound — use NojoomActivity.)
iOS (NojoomLifestyles) — NojoomSDK.Initialize(token, onSuccess, onError),
NojoomSDK.Initialize(token, baseUrl, onSuccess, onError, onSessionExpired, onOfferRedeemed),
NojoomSDK.Initialize(config, onSuccess, onError, onSessionExpired, onOfferRedeemed) +
NojoomSDKConfig, MakeContentViewController(), SetOnDismiss(handler), IsInitialized,
Reset().
License
Proprietary. All rights reserved. See LICENSE.txt.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0-ios18.0 is compatible. net10.0-android36.0 is compatible. net10.0-ios was computed. |
-
net10.0-android36.0
- Xamarin.AndroidX.Activity (>= 1.10.1.3)
- Xamarin.AndroidX.Compose.Runtime.Annotation.Android (>= 1.10.4.1)
- Xamarin.AndroidX.NavigationEvent (>= 1.0.2.1)
- Xamarin.Google.Android.Play.Core.Common (>= 2.0.4.7)
- Xamarin.Google.Android.Play.Integrity (>= 1.4.0.6)
- Xamarin.GooglePlayServices.Base (>= 118.2.0.6)
- Xamarin.GooglePlayServices.Basement (>= 118.7.1.1)
- Xamarin.GooglePlayServices.Maps (>= 118.2.0.2)
- Xamarin.GooglePlayServices.Tasks (>= 118.3.2.1)
- Xamarin.Kotlin.StdLib (>= 2.3.10.1)
- Xamarin.KotlinX.Coroutines.Android (>= 1.10.2.3)
- Xamarin.KotlinX.Serialization.Core.Jvm (>= 1.10.0.1)
-
net9.0-ios18.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.15 | 96 | 10/1/2026 |
| 1.0.14 | 103 | 9/28/2026 |
| 1.0.13 | 95 | 9/25/2026 |
| 1.0.12 | 90 | 9/18/2026 |
| 1.0.11 | 126 | 9/7/2026 |
| 1.0.10 | 125 | 9/4/2026 |
| 1.0.9 | 133 | 9/2/2026 |
| 1.0.8 | 109 | 8/27/2026 |
| 1.0.7 | 117 | 8/20/2026 |
| 1.0.6 | 107 | 8/20/2026 |
| 1.0.5 | 109 | 8/20/2026 |
| 1.0.4 | 114 | 8/19/2026 |
| 1.0.3 | 126 | 8/13/2026 |
| 1.0.2 | 120 | 8/12/2026 |
| 1.0.1 | 121 | 8/11/2026 |
| 1.0.0 | 115 | 8/10/2026 |