Posts

Post not yet marked as solved
1 Replies
712 Views
In my app, I use Firebase's Firestore for live data, so when a new post is created, the user receives it instantly. Is there a way to duplicate that behavior in a widget extension? I tried the code below, but it only works when I run the project with the widget extension target selected. import SwiftUI import WidgetKit import FirebaseCore import FirebaseAuth @main struct PostWidgets: WidgetBundle {     private let dependencyInjector = DependencyInjector.shared     init() {         FirebaseApp.configure()         try! Auth.auth().useUserAccessGroup("\(Keys.appleTeamId).com.nup.popster")       dependencyInjector.register(target: PostWidgetsRepository.self, dependency: PostWidgetsFirestoreService())         @Injected var postsService: PostWidgetsRepository         postsService.subscribeToNewPosts { post in             if let post {                 WidgetCenter.shared.reloadAllTimelines()             }         }     }     var body: some Widget {         FriendsWidget()         SchoolWidget()     } }
Posted
by ThemisDr.
Last updated
.
Post marked as solved
1 Replies
2.3k Views
I'm trying to renew my APNS certificate, so I created a new one, (the one that read Sandbox & Production) downloaded and imported it to my keychain. The issue is that when I go to export it, the .p12 option is unclickable! It is there, but I can't select it! Any idea what’s wrong?
Posted
by ThemisDr.
Last updated
.