Transferring Firebase login to today extension
NickName:Gil Ask DateTime:2016-08-24T21:29:57

Transferring Firebase login to today extension

The problem I'm having is, I cannot figure out how to transfer the user log in token from the main app to the today extension.

So the user opens the app, logs in, and can add data to their profile. If they then pull down the today view from notification center, no user data can be pulled in because the user is not logged in.

My Firebase test project is here: https://bitbucket.org/gilosborne/firebasetest

In this example I am just trying to pull the users email address into the today extension the same way I am in the log in view controller. The button is not hooked up to anything yet.

Using Swift 2.3 with the latest version of Firebase.

Thank you for any help!

Copyright Notice:Content Author:「Gil」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/39124734/transferring-firebase-login-to-today-extension

More about “Transferring Firebase login to today extension” related questions

Transferring Firebase login to today extension

The problem I'm having is, I cannot figure out how to transfer the user log in token from the main app to the today extension. So the user opens the app, logs in, and can add data to their profil...

Show Detail

Firebase analytics for iOS Today extension(widget extension)

I tried to add firebase analytics in today extension. So I input the configuration code if (![FIRApp defaultApp]) { [FIRApp configure]; } in today extension's viewDidLoad. And in the Xcod...

Show Detail

How to add Firebase to Today Extension iOS

I need to be able to use Firebase in my Today View Extension, however I cannot seem to import the Firebase module. I think it's because I need a new target in my cocoa pods file, but I'm not sure o...

Show Detail

Firebase currentUser returns nil in iOS Today Extension while user is logged in

User is authorized in main app, and Firebase is initialized inside Today Extension: // We check if FIRApp has already been configured with a static var, else it will crash... if !TodayViewCont...

Show Detail

Login in both Chrome extension and Webapp via Firebase

Chrome Extension part I have implemented a chrome extension based on Firebase. We started the login flow by: chrome.identity.launchWebAuthFlow and then after the flow is done, it will trigger th...

Show Detail

How to access current firebase user from iOS Today Extension?

We're building a today widget on top of our iOS app which is working with Firebase. However we're struggling to access current signed-in user from the extension. The user at the main app is anonymo...

Show Detail

Firebase Google Login popup not appearing for Chrome Extension

I am trying to implement Firebase Google login for a small to do Chrome Extension. The code is pasted below. The code is present both inside a background.js file that is mentioned in the manifest.j...

Show Detail

How to communicate firebase webapp with chrome extension to avoid double login

I have a problem with creating a communication between the external webpage and chrome extension. I suppose I need something like this. User tries to log in with login form on "example.com" using

Show Detail

Today's Extension communicate with Main App

so I am able to share data using App Groups but I was wondering if it is possible to update the data from Today's extension. So in my iOS app I have a set of data that gets data from Firebase and

Show Detail

I'm trying to add Firebase to my Today Extension. It won't let me import firebase into my View Controller

like the title says: I'm trying to add data from Firebase to my Today Extension. I've added all of the frameworks from my main project and now I'm trying to "import Firebase" into the .swift file f...

Show Detail