Can FirebaseAuth 5.0.x be used in an iOS app exten

2019-07-02 02:05发布

FirebaseAuth uses [UIApplication sharedApplication] in FIRAuth.m. Since that API is not available to App Extensions, it appears that FirebaseAuth (and anything that depends on it, such as Firestore) can not be used in an App Extension.

Is there any way around this limitation?

1条回答
狗以群分
2楼-- · 2019-07-02 02:28

Update:

Firebase confirms that a fix is targeted for 5.2.x version. Track the Github issue for latest updates.


It seems as Firebase is not officially supporting extensions in iOS. I have got that info from this GitHub issue (see paulb777's answer). Maybe someone from Firebase can also confirm this here. I am very surprised that we can't use Firebase SDK when creating extensions such as a Today widget.

The only workaround I had was reverting back to an earlier version of Firebase via:

pod 'Firebase', '4.9.0'

This uses the 4.9.0 version of the Firebase SDK and doesn't create compiler errors.

查看更多
登录 后发表回答