@@ -6,12 +6,14 @@ import {
66 HardwareType ,
77} from "@/../../cloud/packages/types/src"
88import { useMemo } from "react"
9+ import { Platform } from "react-native"
910import { AsyncResult , result as Res , Result } from "typesafe-ts"
1011import { create } from "zustand"
1112import * as Sentry from "@sentry/react-native"
1213
1314import { getCurrentRoute , push } from "@/contexts/NavigationHistoryContext"
1415import { translate } from "@/i18n"
16+ import CoreModule from "core"
1517import restComms from "@/services/RestComms"
1618import STTModelManager from "@/services/STTModelManager"
1719import { SETTINGS , useSetting , useSettingsStore } from "@/stores/settings"
@@ -82,6 +84,8 @@ export const storePackageName = "com.mentra.store"
8284export const simulatedPackageName = "com.mentra.simulated"
8385export const mirrorPackageName = "com.mentra.mirror"
8486export const lmaInstallerPackageName = "com.mentra.lma_installer"
87+ export const mentraAiPackageName = "com.mentra.ai"
88+ export const notifyPackageName = "cloud.augmentos.notify"
8589
8690export const uninstallAppUI = async ( clientApp : ClientAppletInterface ) => {
8791 console . log ( `Uninstalling app: ${ clientApp . packageName } ` )
@@ -180,8 +184,8 @@ export const SYSTEM_APPS = [
180184 storePackageName ,
181185 simulatedPackageName ,
182186 mirrorPackageName ,
183- "com.mentra.ai" ,
184- "com.mentra.notify" ,
187+ mentraAiPackageName ,
188+ notifyPackageName
185189]
186190
187191// get offline applets:
@@ -249,6 +253,8 @@ const getOfflineApplets = async (): Promise<ClientAppletInterface[]> => {
249253 const modelAvailable = await STTModelManager . isModelAvailable ( )
250254 if ( modelAvailable ) {
251255 await storage . save ( `${ captionsPackageName } _running` , true )
256+ // ensure transcriber is initialized with the current model:
257+ await CoreModule . restartTranscriber ( )
252258 // tell the core:
253259 await useSettingsStore . getState ( ) . setSetting ( SETTINGS . offline_captions_running . key , true )
254260 return undefined
@@ -577,6 +583,22 @@ export const useAppletStatusStore = create<AppStatusState>((set, get) => ({
577583 applet . hidden = state . getHiddenStatus ( applet . packageName )
578584 }
579585
586+ // Platform-specific app filtering and routing
587+ applets = applets . filter ( ( applet ) => {
588+ // Notify is not supported on iOS yet - remove entirely
589+ if ( Platform . OS === "ios" && applet . packageName === notifyPackageName ) {
590+ return false
591+ }
592+ return true
593+ } )
594+ for ( const applet of applets ) {
595+ if ( applet . packageName === notifyPackageName ) {
596+ // On Android, route to notification settings instead of generic webview settings
597+ applet . offline = true
598+ applet . offlineRoute = "/miniapps/settings/notifications"
599+ }
600+ }
601+
580602 set ( { apps : applets } )
581603 } ,
582604
0 commit comments