Post

Replies

Boosts

Views

Activity

Xcode won't add Firebase package manager
Hi, Firebase package manager was working fine, then had to move the whole project to a fresh install of the mac. Now Xcode won't allow adding Firebase via File > Packages (just greyed out) And when putting https://github.com/firebase/firebase-ios-sdk.git into + Package Dependency method nothing happens. Screenshots attached. I have deleted the build caches via About this mac > Storage > Manage > Developer but it didn't help. Any suggestions greatly appreciated. Thanks
2
0
5.7k
Nov ’21
How to keep meditation timer running if app is in background or phone is locked?
I've just finished making a meditation app for iphone using swiftui which includes a timer. The only problem is the timer stops when the app is in the background or the phone is locked. The user can select between 2 and 60 minutes on the timer and play, pause, reset the timer. When seconds remaining equals zero the timer ends and a meditation bell sound plays to signal the end of the meditation. Currently I use the default timer on the iphone when I meditate in the Clock app. If I set this timer for 20 minutes and lock the phone, at the end of the 20 minutes the timer will go off and notify me with whatever sound I selected in "When Timer Ends". If the default Clock app on the iphone has this basic functionality, why is it so hard to have the same functionality in the meditation app I'm making? Wouldn't the safest/easiest way to have the timer run in the background or when the phone is locked be the same method the default Clock app uses? While meditating, we don't want to have our phone giving off light by having to be unlocked so the timer can continue running. We want to be able to lock the phone so it's not giving off light and be reminded when the time ends or if we unlock the phone to check how much time is remaining. Any thoughts would be appreciated. Have checked stackoverflow and other places but the fixes and work around methods don't directly apply to the use case.
1
0
1.7k
Aug ’21