openApp

suspend fun openApp(context: Context, packageName: String): Boolean(source)

Opens a specific app if installed.

Returns true if the app was successfully launched and false otherwise. For callers that need to react programmatically to failures, use openAppResult.