[英]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. 因此我可以使用
App Groups
共享数据,但我想知道是否可以从“今日扩展”中更新数据。
So in my iOS app I have a set of data that gets data from Firebase
and updates the App group
因此,在我的iOS应用中,我有一组数据,这些数据是从
Firebase
获取数据并更新App group
Now my Today's extension can retrieve the App group
data only if the iOS app has been opened. 现在,我的今日扩展
App group
只能在打开iOS应用程序的情况下才能检索App group
数据。
I am trying to figure out a way to call the iOS app from Today's extension to update the data because the iOS has a method that calls Firebase which updates the App Group
. 我正在尝试从Today的扩展名中找到一种方法来调用iOS应用程序以更新数据,因为iOS有一种方法可以调用Firebase来更新
App Group
。
Is this even possible? 这有可能吗?
You can't communicate directly with your main app as you want. 您不能根据需要直接与主应用程序通信。 You can basically do two things:
您基本上可以做两件事:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.