Coder Social home page Coder Social logo

Comments (2)

ddurham2 avatar ddurham2 commented on August 23, 2024

The logged output is this...

2023-06-14 01:20:27.226739-0500 App[15066:1930027] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/jsmith/Library/Developer/CoreSimulator/Devices/16D30770-7A62-46C3-B8C9-5D5B79190892/da
ta/Containers/Data/Application/D5B5B09E-B01A-4229-96F6-C75C06A87312/Library/Cookies/com.acme.authexample.binarycookies
2023-06-14 01:20:27.409759-0500 App[15066:1930027] KeyboardPlugin: resize mode - native
⚡️ Warning: isWebDebuggable only functions as intended on iOS 16.4 and above.
⚡️  Loading app at com.acme.mobileapp://localhost...
⚡️  [log] - onscript loading complete
⚡️  WebView loaded
⚡️  [log] - Ionic Native: deviceready event fired after 133 ms
⚡️  To Native ->  App addListener 117317815
⚡️  To Native ->  App addListener 117317816
⚡️  To Native ->  Keyboard getResizeMode 117317817
⚡️  TO JS {"mode":"native"}
⚡️  To Native ->  Keyboard getResizeMode 117317818
⚡️  TO JS {"mode":"native"}
To Native Cordova ->  BrowserTab openUrl BrowserTab779295891 ["options": [https://acme.com/auth/realms/acme/protocol/openid-connect/auth?client_id=mobile&redirect_uri=com.acme.mobileapp%3A%2F%2Ftabs%2Ftab1&state
=0a4302dc-5ff1-4678-8387-bf7ab3206169&response_mode=query&response_type=code&scope=openid&nonce=b1ea6b31-6b96-4e4f-848d-c81a214bcefc]]
⚡️  To Native ->  App addListener 117317819
⚡️  TO JS {"iosSourceApplication":"com.apple.SafariViewService","iosOpenInPlace":"","url":"com.acme.mobileapp:\/\/tabs\/tab1?state=0a4302dc-5ff1-4678-8387-bf7ab3206169&session_state=1825b3be-a0b9-4a5e-9291-4e445
334eb2f&code=e68eea75-9ecd-4cff-98d7-7e182b4ff735.
⚡️  TO JS {"iosSourceApplication":"com.apple.SafariViewService","iosOpenInPlace":"","url":"com.acme.mobileapp:\/\/tabs\/tab1?state=0a4302dc-5ff1-4678-8387-bf7ab3206169&session_state=1825b3be-a0b9-4a5e-9291-4e445
334eb2f&code=e68eea75-9ecd-4cff-98d7-7e182b4ff735.
⚡️  [log] - handling appUrlOpen for URL: com.acme.mobileapp://tabs/tab1?state=0a4302dc-5ff1-4678-8387-bf7ab3206169&session_state=1825b3be-a0b9-4a5e-9291-4e445334eb2f&code=e68eea75-9ecd-4cff-98d7-7e182b4ff735.182
5b3be-a0b9-4a5e-9291-4e445334eb2f.53e64b2e-4c4c-436d-be4a-31d82f5517f1
⚡️  [log] - slug: tabs/tab1
To Native Cordova ->  BrowserTab close BrowserTab779295892 ["options": []]
⚡️  To Native ->  App ⚡️  [warn] - Using addListener() without 'await' is deprecated.
removeListener 117317820
⚡️  [error] - ERROR Error: Uncaught (in promise): [object Undefined]

The bit that logs "handling appUrlOpen" is my deep link handler. So it's getting that far. In that handler I parse the slug from the custom schemed-url and would do the internal navigation.

That final error occurs upon redirecting back to the app. I'm wondering if that is a sign that processing is being halted before the returned state is able to be processed. Though, I thought the response data would have been handled earlier than that point. So that error could be benign.

But, I'm seeing that 4th line from the bottom in the log (closing the tab) as possibly connect to the code at https://github.com/jy95/keycloak-capacitor/blob/main/src/keycloak.js#LL1630C1-L1631C1 which appears to be just before it will be handling the return url's data. Am I on the right track?

from keycloak-capacitor.

ddurham2 avatar ddurham2 commented on August 23, 2024

I'm going to close this. I re-performed the upgrade, and I don't know if it was the order that things where done, or flushing out older dependencies, but it is working now with Angular 15, Ionic 7 and Capacitor 5

from keycloak-capacitor.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.