diff --git a/schemas/com.snowplowanalytics.mobile/application_lifecycle/jsonschema/1-0-0 b/schemas/com.snowplowanalytics.mobile/application_lifecycle/jsonschema/1-0-0 new file mode 100644 index 00000000..9fc60601 --- /dev/null +++ b/schemas/com.snowplowanalytics.mobile/application_lifecycle/jsonschema/1-0-0 @@ -0,0 +1,26 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Entity that indicates the visibility state of the app (foreground, background)", + "self": { + "vendor": "com.snowplowanalytics.mobile", + "name": "application_lifecycle", + "format": "jsonschema", + "version": "1-0-0" + }, + + "type": "object", + "properties": { + "isVisible": { + "description": "Indicates if the app is in foreground state (true) or background state (false)", + "type": "boolean" + }, + "index": { + "description": "Represents the foreground index or background index (tracked with com.snowplowanalytics.snowplow application_foreground and application_background events.", + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": ["isVisible"], + "additionalProperties": false +}