Skip to content

Add and remove UIApplicationDelegate in runtime without overwriting existing iOS delegates #1268

@jdnichollsc

Description

@jdnichollsc

Is your feature request related to a problem? Please describe.
I'm always frustrated when I need to use iOS delegates but other plugins overwrite that behavior because oficial docs only show that example: ios.delegate = MyDelegate; => https://docs.nativescript.org/core-concepts/application-lifecycle#ios-uiapplicationdelegate

Describe the solution you'd like
I would like having another way to add and remove subscriptions to the methods of the current delegate.

Describe alternatives you've considered
Using alternatives like this hypery2k/nativescript-urlhandler#24 (comment) but that makes working with deep linking, etc from NativeScript cumbersome, because most people who use UIApplicationDelegate don't use that strategy (A lot of plugins).

Additional context
It's required because we don't have an unified API to get the initial URL of the app, etc, like this: https://reactnative.dev/docs/linking This is very important for most of the apps, using deep linking, etc.

Thanks for your help!
Another plugin maker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions