From 06cb21216f6dd62241799f701279813b8f1b47be Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 21 Oct 2019 12:41:50 +0200 Subject: [PATCH] MOBILE-3199 lti: Launch LTI in browser in desktop --- src/addon/mod/lti/providers/lti.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/addon/mod/lti/providers/lti.ts b/src/addon/mod/lti/providers/lti.ts index c9d160692..0c544b4b6 100644 --- a/src/addon/mod/lti/providers/lti.ts +++ b/src/addon/mod/lti/providers/lti.ts @@ -207,7 +207,12 @@ export class AddonModLtiProvider { // Generate launcher and open it. return this.generateLauncher(url, params).then((url) => { - this.utils.openInApp(url); + if (this.appProvider.isMobile()) { + this.utils.openInApp(url); + } else { + // In desktop open in browser, we found some cases where inapp caused JS issues. + this.utils.openInBrowser(url); + } }); }