EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 444 forks source link

Nativescript-plugin-firebase breaks usage of nativescript-oauth2 #1629

Closed cjohn001 closed 4 years ago

cjohn001 commented 4 years ago

Hello together, when using the firebase plugin together with nativescript-oauth2 the oauth2 plugin breaks. I debugged the issue and described it here:

https://github.com/alexziskind1/nativescript-oauth2/issues/113#issuecomment-651893514

I believe it is an issue of the firebase plugin as the behavior one sees when debugging the oauth2 plugin looks realy weird (described under the link). Therefore I also added the issue to the plugin here. If someone could come up with a real solution which is better than the workaround I sketched on the other issue, this would be very great!

cjohn001 commented 4 years ago

Issue was based on oauth2 plugin as it overwrote safariviewcontroller instance, see

https://github.com/alexziskind1/nativescript-oauth2/issues/135

anarnoli commented 3 years ago

@cjohn001 May I know the approach you followed to make it together plugins working? I’m thinking to use both plugins together since firebase plugin doesn’t returns oauth access token which I can use it further to call Google Apis.

cjohn001 commented 3 years ago

@anarnoli, cant remember the issue anymore, but I am using the nativescript oauth plugin together with firebase. There was an upgrade to the oauth plugin recently

https://www.youtube.com/watch?v=u7BQksdfoJo&t=0s

However, I am only using the on device related firebase part, the camera scanner. Not sure if other stuff works as well