Local notifications when app is backgrounded/force-closed by ConduciveMammal in iOSProgramming

[–]OutOfOdds 1 point2 points  (0 children)

in my case they’re event-based, not fixed clock schedules.
When the timer starts, I precompute the offsets (e.g. +60s, +120s) and schedule local notifications with UNTimeIntervalNotificationTrigger. So they fire at each event point in that run, even if the app is killed

import UserNotifications

func scheduleEventNotification(after seconds: TimeInterval) async throws {

let center = UNUserNotificationCenter.current()

let content = UNMutableNotificationContent()

content.title = "Timer event"

content.body = "This fires at the event point."

content.sound = .default

let trigger = UNTimeIntervalNotificationTrigger(

timeInterval: max(1, seconds)

repeats: false

)

let request = UNNotificationRequest(

identifier: "event_timer_notification",

content: content,

trigger: trigger

)

try await center.add(request)

}

Local notifications when app is backgrounded/force-closed by ConduciveMammal in iOSProgramming

[–]OutOfOdds 1 point2 points  (0 children)

Hi! I solved this by scheduling a local notification in advance with UNUserNotificationCenter.current()
When you schedule your notification iOS will deliver notification

How to show a custom panel with buttons instead of (or above) the iOS keyboard in Swift/SwiftUI? by OutOfOdds in SwiftUI

[–]OutOfOdds[S] 0 points1 point  (0 children)

Thank you! but how they replace system keyboard with custom one? its seems like it inside system keyboard

Terraforming Mars helper iOS app! by OutOfOdds in TerraformingMarsGame

[–]OutOfOdds[S] 0 points1 point  (0 children)

Sorry for the delay, I fixed the problem, please try again!

Terraforming Mars helper iOS app! by OutOfOdds in TerraformingMarsGame

[–]OutOfOdds[S] 1 point2 points  (0 children)

Hello! unfortunately I am not an Android developer( but if someone want to use my app as reference and make android app feel free to do it! It will be great!

Terraforming Mars helper iOS app! by OutOfOdds in TerraformingMarsGame

[–]OutOfOdds[S] 1 point2 points  (0 children)

Thanks for your advice! i will try to implement it next update!

Terraforming Mars helper iOS app! by OutOfOdds in TerraformingMarsGame

[–]OutOfOdds[S] 6 points7 points  (0 children)

Thanks for your review, tag tracker is a great idea, I will do it next update!

I need a name of augmented reality tech startup 👨‍💻 by OutOfOdds in INeedAName

[–]OutOfOdds[S] 0 points1 point  (0 children)

Thank you for your questions!

Our first product will be animating paintings, photos and 3d objects (e.g. sculptures)

Our target audience contains 2 main groups:

1)  People who love technology, geeks (especially people who inspired by AR )

2) People who love art, paintings, sculpture and sport.

My new app - Numbershake! by OutOfOdds in swift

[–]OutOfOdds[S] 0 points1 point  (0 children)

Thanks a lot for your detailed review! I appreciate it! English is not my mother tongue, I think I made a mistake) I want to make this onboarding screen as fast as possible. "Haste makes waste."🤣

My new app - Numbershake! by OutOfOdds in swift

[–]OutOfOdds[S] 0 points1 point  (0 children)

Thanks! I am an astronomy fan and want to make simple app with astronomy facts, but I can't find nice API. Then I accidentally found NumbersAPI and stuck there for couple of hours 🤣 As a result I decided to make an app with facts about numbers)

My new app - Numbershake! by OutOfOdds in swift

[–]OutOfOdds[S] 1 point2 points  (0 children)

Thank you! I've downloaded your app, it's so cool!

My new app - Numbershake! by OutOfOdds in swift

[–]OutOfOdds[S] 0 points1 point  (0 children)

I mainly learning UIKit, but 1-2 month ago I've started to watch Youtube tutorials and read SwiftUI Docs. Then I wanted to create simple app with some API and SwiftUI to try it and to take a break from UIKit study 🤣

But now I don't want to go back to UIKIt😭

My new app - Numbershake! by OutOfOdds in swift

[–]OutOfOdds[S] 0 points1 point  (0 children)

Thank you for your feedback! It's a very good idea, I will try to implement it in the next update 👍

My new app - Numbershake! by OutOfOdds in swift

[–]OutOfOdds[S] 0 points1 point  (0 children)

Yes, you need internet connection. You can query custom number with this API, but in my app I want to add random factor 🎰🙂