I got an exception with apple signin, when i tried to deeply debug on plugin code, i realized below is the lines of code has been throwing out the exception.:
firebase.ios.js line 824 - 827
const delegate = ASAuthorizationControllerDelegateImpl.createWithOwnerAndResolveReject(**new WeakRef(this)**, resolve, reject); CFRetain(delegate); authorizationController.delegate = delegate; authorizationController.presentationContextProvider = ASAuthorizationControllerPresentationContextProvidingImpl.createWithOwnerAndCallback(**new WeakRef(this)**);
(this is undefined all the times)
NS: 7.0.6 NS firebase: 11.0.0.rc5 iOS platform:
I got an exception with apple signin, when i tried to deeply debug on plugin code, i realized below is the lines of code has been throwing out the exception.: firebase.ios.js line 824 - 827
const delegate = ASAuthorizationControllerDelegateImpl.createWithOwnerAndResolveReject(**new WeakRef(this)**, resolve, reject); CFRetain(delegate); authorizationController.delegate = delegate; authorizationController.presentationContextProvider = ASAuthorizationControllerPresentationContextProvidingImpl.createWithOwnerAndCallback(**new WeakRef(this)**);
(this is undefined all the times)Workaround:
const delegate = ASAuthorizationControllerDelegateImpl.createWithOwnerAndResolveReject(this, resolve, reject); CFRetain(delegate); authorizationController.delegate = delegate; authorizationController.presentationContextProvider = ASAuthorizationControllerPresentationContextProvidingImpl.createWithOwnerAndCallback(this);
@EddyVerbruggen do we need to pass this if now it's undefined ?