Type Alias: IpcNotificationOptions
IpcNotificationOptions =
object
Defined in: packages/expo-binary-module/src/types/ipc.ts:8
Properties
notifyOnAppStates?
optionalnotifyOnAppStates?:AppStateStatus[]
Defined in: packages/expo-binary-module/src/types/ipc.ts:15
Sets the AppState the binary service is allowed to create a notification from the IPC message received from the binary throught the log/output stream.
Default: undefined (notifies on all states excluding when app is open - status is "active")
tag
tag:
string
Defined in: packages/expo-binary-module/src/types/ipc.ts:34
Tag used to identity and create notifications from binary stdout logs.
This allows the binary to update the persistent notification as well as create new notifcations.
To update persistent notification, "id" must be set to BINARY_NOTIFICATION_ID in the log.
Notes:
- If the tag is set to
[notification], everything after it will be parsed as NotificationOptions. - If parse fails, it will be ignored.
- Multiline parsing is not supported. The NotificationOptions must be a single-line valid JSON string.
Example binary log:
2000-01-01 01:01:01.999 [notification] { "id": 1, "title": "New message!", "text": "Click to open app" }