Coder Social home page Coder Social logo

Comments (6)

mlynch avatar mlynch commented on May 12, 2024

Similarly, figure out a custom app delegate. Facebook does theirs like this:

https://github.com/facebook/facebook-sdk-swift/blob/82d4f4bc4226bd9d0494a604cb2f39632f6a0b57/Sources/Core/Common/SDKApplicationDelegate.swift
https://github.com/facebook/facebook-sdk-swift/blob/master/Samples/Catalog/Sources/AppDelegate.swift

from capacitor.

mlynch avatar mlynch commented on May 12, 2024

Added the delegate in 80197c7

from capacitor.

jcesarmobile avatar jcesarmobile commented on May 12, 2024

A lot of AppDelegate events emit a notification, see the Notifications section of https://developer.apple.com/documentation/uikit/uiapplication.

So plugins can subscribe to them in load method.

For the ones not available we should do it ourselves in the class you created

from capacitor.

jcesarmobile avatar jcesarmobile commented on May 12, 2024

Going to close as we propagate some of the AppDelegate methods and others are emitted by iOS itself in notification center.
If we need any other in particular better create a separate issue.

from capacitor.

RoopeHakulinen avatar RoopeHakulinen commented on May 12, 2024

Hey @jcesarmobile & @mlynch

If I understand the consequences of this correctly, it means that Cordova plugins that require AppDelegate access won't work at all with Capacitor. I cannot see any way to make this happen with even development done on the plugin's code itself. Could you please confirm this so I can spare my time instead of trying to make the plugin compatible with Capacitor?

I'm just implementing iOS support (as v13 adds the NFC functionality) for cordova-plugin-mifare-ultralight and would like it to work with the Capacitor too as the latest apps of ours are using it instead of Cordova.

from capacitor.

ionitron-bot avatar ionitron-bot commented on May 12, 2024

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

from capacitor.

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.