Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not work with "Custom URL scheme" plugin and iOS

See original GitHub issue

Hello, I’m implementing Google oauth login using SafariViewController combined with “Custom URL scheme” cordova plugin on iOS.

The oauth authentication was launched in a SafariViewController session. On authentication success redirect I show a server web page with a redirect to “myapp://authenticate” but the redirect is never executed.'myapp://link')

I tried to call “myapp://” directly in Safari browser and it works. I setted “cordova-plugin-whitelist” with the “allow-intent” for my app.

Actually I’m trying in iOS emulator, it works perfectly under Android. On xcode debug console I have this error on app start:

Internal navigation rejected - <allow-navigation> not set for url=‘about:blank’

Can you help me?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

DaniShalashcommented, Mar 13, 2019

The article clearly advise the use of Safari View Controller over in-App Browser, Which make this question valid

valimerocommented, Jun 21, 2019

It might help you,

In the redirect page I have:

<!DOCTYPE html>
    <meta charset="UTF-8">
        var app = "my-app"; // Your Custom URL Scheme
        var data =;
        window.location.assign( app + '://?data=' + encodeURIComponent(data));

But URLScheme handles only when I close SafariViewController manually (By pressing the “ok” button)

 =================url my-app://?data=%3Fstate%3D%26code%3Df3f1605bdf1590e8beb742718ba60b0c7a6d%26scope%3Dview_private
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cordova Custom-URL-scheme plugin not working
It should not implement something in iOS. Custom URL scheme only updates Info.plist in iOS. So, it's fine. It REGISTERS custom URL schemes....
Read more >
Issues · EddyVerbruggen/Custom-URL-scheme - GitHub
link: Launch your Cordova/PhoneGap app by a Custom URL scheme like mycoolapp:// ... handleOpenURL method is not called on iOS when running with...
Read more >
Open Application via URL Scheme in Cordova
URL scheme is used to open application via url links from email or messages. ... For this we need to install cordova plugin...
Read more >
Defining a custom URL scheme for your app - Apple Developer
While custom URL schemes are an acceptable form of deep linking, universal links are strongly recommended. For more information on universal links, ...
Read more >
uni_links | Flutter Package -
Uni Links #. A Flutter plugin project to help with App/Deep Links (Android) and Universal Links and Custom URL schemes (iOS). These links...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found