Post

Replies

Boosts

Views

Activity

Reply to My background task needs more time
I’ve not used this API but it appears to keep track of historical data and doesn’t require active monitoring from the app? Unless I’m reading this wrong. It looks like you just need a timer and then if the app is shut down, pass the remaining time to a push notification to alert the user. Even if it could be done as a background process, the user has the option to turn that off. If they don’t understand why or forget, they may do that.
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’24
Reply to CMPedometer not counting floors
According to this, "A single floor has a height of approximately three meters". So that would make me think that anything falling under that tolerance is ignored. This is also approximatley the limitation of the GPS data itself and I think it is less accurate vertically. My brother and I walk about 10-12 miles a day on vacation and my phone always gives me more credit than his despite no real difference in where we go. I'm not exactly sure why. I do tend to do the navigating and he mostly keeps his in his pocket. I think the data can only be used to track your own relative performance than be accurate enough to compare to others. If Apple's Fitness app isn't picking up the difference either, I'd say it's just a limitation. It wouldn't surprise me if you went one floor and didn't get credit for it but two floor and got credit for both as that would form a trend over two points.
Topic: App & System Services SubTopic: Hardware Tags:
Mar ’24
Reply to CMPedometer not counting floors
For direction and distance, it needs GPS data in this case. And that accuracy is largely outside of Apple's control. It's looking for two points for a direction vector and if the second is within three meters of the first, it's only seeing the one point. Yes, while it might not work for one flight, as long as you get data to establish the user is climbing or descending, you could extrapolate what the step data means. The API uses this to determine if the user is taking the steps or using an elevator. You could also take the start and end GPS data directly and apply your own analysis of what is occurring between these points. But this 3 meter accuracy will still be an issue. The device is capable of obtaining a more accurate picture of its surroundings but then that's not really practical for your case. You probably don't want the user to start their exercise by doing a room scan. It's the old trade off of speed/accuracy/convenience. I'd try to determine how sensitive it really is by looking at the raw GPS data. You might get by with some trick like having the user press start with the device on the floor. Or just explaining to the user the need to move further or otherwise show them when they hit a new GPS point to qualify them.
Topic: App & System Services SubTopic: Hardware Tags:
Mar ’24
Reply to App in App Store does not show up when I type its name in search window
It shows up if you remove the space, use an underscore or dash, or surround it with quotes. I have no idea why it won't list it using the title as is. Have you tested listing the name this way as a keyword? I wouldn't think it would be necessary but it might act as a patch until you get a better answer. It may take a day or two to index the new keyword although I have no idea if it takes any time at all.
Mar ’24
Reply to Test Game Center integration for new game
Yes, you can test and TestFlight achievements without them being live. That error is saying you have the app referring to the wrong or mistyped ID. Should be the Achievement ID and not the reference name. let progress = min(percentComplete, 100.0) let achievement = GKAchievement(identifier: achievementID) achievement.percentComplete = progress achievement.showsCompletionBanner = true // Optional: to show a banner when completed // Report the achievement progress to Game Center GKAchievement.report([achievement]) { error in if let error = error { print("Error reporting achievement: \(error.localizedDescription)") } else { print("Achievement reported successfully") } }
Topic: Graphics & Games SubTopic: GameKit Tags:
Apr ’24
Reply to My application always rejected, reason app's icon identical with other apps
Unless it is a trademarked logo, I think the only way to help is to design a new logo for you. If it is trademarked then I would assume they would then approve yours and cause the others to get rejected. It may be possible that another developer raised the issue. If your use is first, you may have options against the holder's trademark but I'm not a lawyer.
Apr ’24
Reply to How to Persist App Data (UserDefaults)?
I've not experience that with UserDefaults. I wouldn't give up on finding that issue. But anything I want protected in cases where a user might lose or change their device, I use CoreData with NSPersistentCloudKitContainer. Which is easy to remember if you watch this video as this Nick Gillet says it 1.5 times per minute.
Topic: App & System Services SubTopic: General Tags:
Apr ’24
Reply to Missing API declaration Help
Although I don't see it here, mine was getting the same reports until I removed an extra empty item. Apparently I inadvertently hit a plus button in the property list. I read in this forum that it could cause an issue and it does. The only difference I see from mine in Privacy Accessed API types is that I have DDA9.1 in the reasons for the time stamp.
Apr ’24
Reply to "Failed to load : <C3DImage"
I get the same errors on files that are no longer in the project, not loaded, not mentioned anywhere in the code, and not part of any SCN or OBJ. But all are related to roughness textures. Although no roughness textures in use are causing an error.
Topic: Graphics & Games SubTopic: SceneKit Tags:
Apr ’24