Git Product home page Git Product logo

Comments (5)

ospfranco avatar ospfranco commented on May 22, 2024 1

You just need to remove the applicationIsUIAgent in the info.plist

from sol.

ospfranco avatar ospfranco commented on May 22, 2024

The main app window is hidden/closed by default. In the app delegate you probably need to call showWindow(). initialUrl will probably not work since that is thought for mobile apps where the app might be silently killed in the background, whereas for macOS sol will not work if it is not actually running.

from sol.

karimbutt avatar karimbutt commented on May 22, 2024

@ospfranco thanks! Where would you call showWindow()? You have that in the appDelegate at the end of the applicationDidFinishLaunching . Can't seem to get any URL data to feed into the app or to even trigger making it visible.

Makes sense re: initialURL use case being very different.

from sol.

ospfranco avatar ospfranco commented on May 22, 2024

I don't quite understand what you want, you should call showWindow wherever you are handling the notification. This is what the official documentation says for iOS:

Screenshot 000635

I haven't built anything for the JS side to handle URLs yet. You seem to be going for the RN APIs, so calling showWindow is the first step to get the app to be visible, and then setting a listener with some of the RN APIs seems the way to go. The official documentation sets up this listener:

Screenshot 000636

In any case, if you really want oauth then you are building this yourself from scratch

from sol.

karimbutt avatar karimbutt commented on May 22, 2024

Thanks @ospfranco ! Managed to resolve the issue so closing this. The initial code did work; it's just I had two versions of the app running with same URL scheme. I'll look into a way to get it working in the task bar to see the instances of the app running next :) Thanks again for your help!

from sol.

Related Issues (20)

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.