Complete technical reference for UMobileOSCoreSubsystem, reboot-persistent local notifications, launcher icon badges, cold/warm deep-link URI parsing, native OS dialogs/share sheets/toasts, and battery telemetry.
UserGuide.html).
UMobileOSCoreSubsystem exposes reboot-persistent local notifications (with Android 13+ POST_NOTIFICATIONS and Android 12+ exact-alarm permission helpers), launcher icon badge clearing, and unified cold-start / warm deep-link URI capture and query-parameter decoding.
On Win64 Editor and non-mobile targets, all methods execute safe no-op stubs so multi-platform Blueprints compile and run cleanly in PIE without platform preprocessor guards.
Trigger native modal alert dialogs (ShowNativeAlertDialog), OS share sheets (ShowNativeShareSheet), and native toasts (ShowNativeToast) directly from Blueprint or C++.
Monitor live battery percentage, temperature in Celsius, charging state (EMobileBatteryChargeState), overheat alerts, and low-battery alerts via GetBatteryState(), SetBatteryAlertThresholds(), and OnBatteryStateChanged.
| Class | Inherits From | Header | Description |
|---|---|---|---|
UMobileOSCoreSubsystem | public UGameInstanceSubsystem | MobileOSCoreSubsystem.h | GameInstanceSubsystem providing unified local notifications, launcher badges, cold/warm deep links, native OS alerts/share sheets/toasts, and battery telemetry for Android and iOS. |
| Owner | Property | Type | Category | Default | Description |
|---|---|---|---|---|---|
FMobileBatteryState | BatteryPercent | float | MobileOSCore|Battery | 100.0f | Battery charge percentage from 0 to 100. |
FMobileBatteryState | TemperatureCelsius | float | MobileOSCore|Battery | 25.0f | Battery temperature in degrees Celsius. |
FMobileBatteryState | ChargeState | EMobileBatteryChargeState | MobileOSCore|Battery | EMobileBatteryChargeState::Unknown | Current charging state reported by the OS. |
FMobileBatteryState | bIsOverheating | bool | MobileOSCore|Battery | false | True when the OS reports overheating or temperature is at or above the overheat threshold. |
FMobileBatteryState | bIsLowBattery | bool | MobileOSCore|Battery | false | True when the charge percentage is at or below the low-battery threshold. |
FMobileDeepLinkPayload | RawURI | FString | MobileOSCore|DeepLink | - | Full raw URI or payload string. |
FMobileDeepLinkPayload | NotificationId | int32 | MobileOSCore|DeepLink | -1 | Notification id when launched from a local notification. -1 for an external URI. |
FMobileDeepLinkPayload | QueryParameters | TMap<FString, FString> | MobileOSCore|DeepLink | - | Parsed query parameters from the URI. |
| Owner | Method | Specifiers | Inputs / Outputs | Functionality |
|---|---|---|---|---|
UMobileOSCoreSubsystem | HasNotificationPermission | BlueprintPure | Return: bool | Returns true when the app is currently permitted by the OS to post local notifications. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | RequestNotificationPermission | BlueprintCallable | None | Requests POST_NOTIFICATIONS on Android 13 and later, then broadcasts OnNotificationPermissionResult. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | CanScheduleExactAlarms | BlueprintPure | Return: bool | Returns true when exact alarms are allowed (Android 12 and later may return false until granted in system settings). Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | OpenExactAlarmPermissionSettings | BlueprintCallable | None | Opens the OS system settings screen where the user can allow exact alarms for this app. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | OpenAppSystemSettings | BlueprintCallable | None | Opens this app's page in the OS application settings. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | ScheduleLocalNotification | BlueprintCallable | In: int32 NotificationId In: const FString& Title In: const FString& Body In: const FString& DeepLinkURI In: int64 DelaySeconds In: int32 BadgeCount = 1 In: bool bRequireExact = true | Schedules a reboot-persistent local notification with optional deep-link URI and badge count. DelaySeconds is clamped at 0; Title and Body are limited to 512 characters. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | CancelLocalNotification | BlueprintCallable | In: int32 NotificationId | Cancels a single scheduled local notification by its NotificationId. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | CancelAllLocalNotifications | BlueprintCallable | None | Cancels every scheduled local notification registered by this app. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | ClearAllNotificationsAndBadges | BlueprintCallable | None | Clears all active notifications from the shade and resets the launcher icon badge count. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | ConsumeColdStartDeepLink | BlueprintCallable | Out: FMobileDeepLinkPayload& OutPayload Return: bool | Consumes and outputs the pending cold-start deep link or notification tap once, and broadcasts OnDeepLinkReceived. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | ParseURIQueryParameters | BlueprintPure | In: const FString& URI Return: TMap<FString, FString> | Parses a URI query string into percent-decoded key-value pairs. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | ShowNativeAlertDialog | BlueprintCallable | In: const FString& Title In: const FString& Message In: const FString& PositiveButtonText In: const FString& NegativeButtonText = TEXT("" | Displays a native modal alert dialog. OnAlertButtonClicked receives 0 for positive, 1 for negative, and 2 for neutral. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | ShowNativeShareSheet | BlueprintCallable | In: const FString& ShareText In: const FString& ShareSubject = TEXT("" | Opens the native OS share sheet with the provided text, optional subject, and chooser title. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | ShowNativeToast | BlueprintCallable | In: const FString& Message In: bool bLongDuration = false | Displays a short native OS toast message. Set bLongDuration to true to keep it visible longer. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | GetBatteryState | BlueprintPure | Return: FMobileBatteryState | Returns the latest cached battery percentage, temperature in Celsius, charge state, and alert flags. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | SetBatteryAlertThresholds | BlueprintCallable | In: float OverheatCelsius = 42.0f In: float LowBatteryPercent = 15.0f | Configures the Celsius and percent thresholds used to compute bIsOverheating and bIsLowBattery flags. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | OnAndroidPermissionsGrantedCallback | UFUNCTION | In: const TArray<FString>& Permissions In: const TArray<bool>& GrantResults |
| Owner | Delegate | Signature / Parameters | Description |
|---|---|---|---|
UMobileOSCoreSubsystem | OnNotificationPermissionResult | bool, bGranted | Broadcast after a notification permission request completes. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | OnExactAlarmPermissionResult | bool, bGranted | Broadcast after returning from the exact-alarm settings page. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | OnDeepLinkReceived | const FMobileDeepLinkPayload&, DeepLinkPayload | Broadcast for a warm deep link, a notification tap, or a consumed cold-start link. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | OnAlertButtonClicked | int32, ButtonIndex | Broadcast with the button index from the native alert dialog. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
UMobileOSCoreSubsystem | OnBatteryStateChanged | const FMobileBatteryState&, BatteryState | Broadcast whenever the OS reports a battery change. Full Documentation: https://twikiastudios.com/products/mobileoscore/detailed-docs/ (User Guide: https://twikiastudios.com/products/mobileoscore/) |
None defined in this module.
| Struct | Header | Description |
|---|---|---|
FMobileBatteryState | MobileOSCoreTypes.h | Snapshot of battery charge percentage, temperature in Celsius, charging state, and threshold alert flags. |
FMobileDeepLinkPayload | MobileOSCoreTypes.h | Decoded deep-link or notification-tap payload delivered on cold start or warm resume. |
| Enum | Values | Description |
|---|---|---|
EMobileBatteryChargeState | Unknown, Discharging, Charging, Full, NotCharging | Battery charging state reported by the native OS. |