roblav96 / nativescript-onesignal

A Nativescript plugin that wraps the iOS and Android OneSignal Push Notifications SDK.
https://documentation.onesignal.com/docs/getting-started
Other
24 stars 42 forks source link

Firebase Facebook login and OneSignal plugin conflict delegate #32

Open PraktikerNeosoft opened 6 years ago

PraktikerNeosoft commented 6 years ago

Hi, I have a problem. My code:

if (application.ios) {
            class IosDelegate extends UIResponder implements UIApplicationDelegate, CLLocationManagerDelegate {
                public static ObjCProtocols = [UIApplicationDelegate];
                applicationDidFinishLaunchingWithOptions(application: UIApplication, launchOptions: NSDictionary<any, any>): boolean {
                    try { OneSignalIos.launch(application, launchOptions); } catch (err) {}
                    return false;
                }
            }
            application.ios.delegate = IosDelegate;
        }

If I want to use Firebase facebook login not working. If I remove application.ios.delegate = IosDelegate; works fine. Can U help me what is the problem? Thanx Miklos