MOBILE-3401 core: Fix invalid site URL in iOS when clicking links
This is caused by a bug in InAppBrowser plugin. Even with the IAB fix, the handleOpenURL function is called if there is no app to handle the URL so we'll need this check anyway
This commit is contained in:
parent
acb406757a
commit
82add048f0
@ -191,6 +191,11 @@ export class MoodleMobileApp implements OnInit {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.urlSchemesProvider.isCustomURL(url)) {
|
||||||
|
// Not a custom URL, ignore.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.logger.debug('App launched by URL ', url);
|
this.logger.debug('App launched by URL ', url);
|
||||||
|
|
||||||
this.lastUrls[url] = Date.now();
|
this.lastUrls[url] = Date.now();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user