如何从iOS Today Extension访问当前的Firebase用户? [英] How to access current firebase user from iOS Today Extension?
问题描述
我发现的唯一方法是传递uid并生成自定义令牌来登录但我希望找到更好的方式来分享我的主要应用程序和应用程序扩展之间的FIRUser。什么是最好的方式来实现这一目标?
我刚刚(几秒前)回答了类似的问题
如何将Firebase添加到Today Extension iOS
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 anonymous so passing credentials via shared container is not an option.
The only way that I found is passing uid and generate custom token to sign in but I was hoping to find out better way to share FIRUser between my main app and app extension. What would be the best way to achieve this?
I just recently (few seconds ago) answered a similar question
How to add Firebase to Today Extension iOS
这篇关于如何从iOS Today Extension访问当前的Firebase用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!