Twikia Studios

MobileOSCore (v1.0.0) - User Guide

Blueprint and C++ friendly Android OS integration with options exposed cleanly in the Details panel, and everything tunable across C++, Blueprints, and Details panels. Ship persistent local notifications, app icon badges, cold/warm deep links, native share/alert/toast UI, and battery temperature alerts without JNI headaches.

Quick Navigation

Demo Console Commands & Deep-Link Harness

No setup needed: Open CPP/MobileOSCoreDemo.uproject on desktop or Android and run mosc.* console commands (with scheme mobileoscoredemo://). All functionality will work out of the box in the demo for testing.
Console CommandAction
mosc.perm / mosc.exact / mosc.settingsCheck or request notification permissions and exact-alarm settings
mosc.schedule ... / mosc.cancel / mosc.cancelallSchedule or cancel persistent local notifications with optional deep links
mosc.badge / mosc.clearUpdate app launcher badges or clear active notifications
mosc.consumeConsume cached cold-start deep links and trigger your navigation event
mosc.alert / mosc.share / mosc.toastOpen native OS modal dialogs, share sheets, or toast banners
mosc.battery / mosc.thresholdsRead live battery charge/temperature telemetry or set thermal warning thresholds

Setup

Step 1: Enable Plugin & Resolve Mobile OSCore Subsystem

Copy MobileOSCore into Plugins/, enable MobileOSCore (and AndroidPermission), set Android Min SDK 26+, and fetch Mobile OSCore Subsystem in Blueprint.

Enable Plugin & Resolve Mobile OSCore Subsystem

Step 2: Request Runtime Notification Permissions

Bind On Notification Permission Result and call Request Notification Permission before scheduling notifications.

Request Runtime Notification Permissions

Step 3: Schedule Notifications & Consume Deep Links

Call Schedule Local Notification for delayed reminders and call Consume Cold Start Deep Link when your startup menu initializes.

Schedule Notifications & Consume Deep Links

End of Setup

Your mobile project now schedules reboot-safe reminders, handles deep links reliably from cold start, and reads thermal/battery state natively in Blueprint. Everything below explains native UI helpers, delegate hooks, and Android manifest setup.

Extras A - OS Event Callbacks

OnNotificationPermissionResult

OnNotificationPermissionResult

Fires after permission prompt or settings flow completes.

OnDeepLinkReceived

OnDeepLinkReceived

Fires on cold-start consume, warm link, or notification tap.

OnAlertButtonClicked

OnAlertButtonClicked

Returns which native alert button index the player tapped.

OnBatteryStateChanged

OnBatteryStateChanged

Broadcasts battery charge level, Celsius temp, and alerts.

Extras B - Native UI, Deep Links & Android Intent Filter

ShowNativeAlertDialog / ShareSheet / Toast

ShowNativeAlertDialog / ShareSheet / Toast

Invoke native Android UI dialogs, shares, and toasts safely.

ConsumeColdStartDeepLink & ParseURIQueryParameters

ConsumeColdStartDeepLink & ParseURIQueryParameters

Decode deep-link parameters and inspect battery telemetry.

Optional Custom URI Scheme (Project Settings)

Add this intent filter inside Project Settings -> Platforms -> Android -> Extra Activity Settings to route custom mygame:// links directly into your app:

ExtraActivitySettings="<intent-filter>\n<action android:name=\"android.intent.action.VIEW\"/>\n<category android:name=\"android.intent.category.DEFAULT\"/>\n<category android:name=\"android.intent.category.BROWSABLE\"/>\n<data android:scheme=\"mygame\"/>\n</intent-filter>"

Extras C - Cross-Platform Iteration Safety

PlatformRuntime Behavior
AndroidExecutes all notification, badge, deep-link, native UI, and battery features with 16 KB ELF alignment
Win64 / Editor / iOSProvides safe no-op stubs so multi-platform PIE testing works without #if PLATFORM_ANDROID clutter

Appendix - API Reference

This table highlights the primary entry points. Additional properties, helper functions, Blueprint nodes, and native C++ APIs are available in Unreal Editor Details panels, Blueprint context menus, and the plugin C++ headers.

NameTypeInputs / OutputsFunctionality
UMobileOSCoreSubsystemSubsystemGameInstance lifetimeManages JNI calls safely across levels, queues cold-start links, and dispatches on GameThread
HasNotificationPermission / RequestPermission / Exact SettingsPure / CallableReturn: bool
Out: OnNotificationPermissionResult
Handles Android 13+ runtime prompts and Android 12+ exact alarm grace without Google Play policy risks
ScheduleLocalNotification / CancelLocalNotification / CancelAllCallableIn: NotificationId, Title, URI
In: DelaySeconds, BadgeCount
Persists alarms across device reboots and updates launcher icon badges cleanly
ClearAllNotificationsAndBadgesCallableNoneClears drawer notifications and resets the app icon badge count back to zero
ConsumeColdStartDeepLink & ParseURIQueryParametersCallable / PureIn: URI
Out: FMobileDeepLinkPayload
Return: bool / TMap
Consumes launch URIs once and percent-decodes query parameters safely
ShowNativeAlertDialog / ShareSheet / ToastCallableIn: Title, Message, Share text
Out: OnAlertButtonClicked
Opens native OS modal alerts, system share sheets, and non-blocking toast messages
GetBatteryState & SetBatteryAlertThresholdsPure / CallableIn: Celsius & % thresholds
Out: FMobileBatteryState
Exposes live battery percentage, temperature, charge state, and overheat warning flags
OnNotificationPermissionResult & OnExactAlarmPermissionResultEventsOut: bool bGrantedReports permission dialog and OS settings outcomes directly to UI flows
OnDeepLinkReceived / OnAlertButtonClicked / OnBatteryStateChangedEventsOut: Payload / ButtonIndex
Out: FMobileBatteryState
React cleanly to notification taps, native dialog buttons, and thermal shifts
FMobileDeepLinkPayload / FMobileBatteryState / ChargeStateStructs / EnumURI, QueryMap
Temp, Percent, Flags
Structured payloads ready to bind into UMG menus and dynamic quality scalers
Need the complete method, property, delegate, and struct reference?

Read the screenshot-free Detailed Documentation (also bundled offline in DetailedDocs.html next to this User Guide).

Need setup help or want to report a bug? Ask in the Twikia Studios Discord Support Channel .