Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

application:openURL:options: method not being called #11

Open
MaksimKurpa opened this issue Apr 19, 2017 · 2 comments
Open

application:openURL:options: method not being called #11

MaksimKurpa opened this issue Apr 19, 2017 · 2 comments

Comments

@MaksimKurpa
Copy link

MaksimKurpa commented Apr 19, 2017

RamblerAppDelegateProxy (0.0.5). Test conditions: app is launched, tested on ios 10.2, 10.3.1. Without RamblerAppDelegateProxy this method is called. Url-scheme tried to open when app is alive in background.

https://developer.apple.com/reference/uikit/uiapplicationdelegate/1623112-application?language=objc

@MaksimKurpa
Copy link
Author

MaksimKurpa commented Apr 19, 2017

My fast solution:
`@interface RamblerAppDelegateProxy (Private)
@Property (strong, nonatomic, readonly) NSMutableArray <id > *delegates;
@EnD

@implementation RamblerAppDelegateProxy(Additions)

  • (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
    for (id delegate in self.delegates) {
    if ([delegate respondsToSelector:@selector(application:openURL:options:)]) {
    [delegate application:app openURL:url options:options];
    }
    }
    return YES;
    }
    @end`

@blashkin
Copy link

blashkin commented Jun 14, 2017

В моем случае проблема была с FirebaseAppDelegateProxy. Его можно отключить указав FirebaseAppDelegateProxyEnabled и значение NO в info.plist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants