Search results for

offloading

179 results found

Post

Replies

Boosts

Views

Activity

Reply to Data flow and managed objects in SwiftUI
Okay I've cracked it open and tried out the method of passing in the data rather than the object itself by offloading to a struct. That definitely solves the issue, optically, but I need to refactor editing of deleting the item from the modal. I'm sure i'll figure it out tonight. If I get stuck again or have further questions I'll be back! Regardless, thanks DMG for the help and great ShoppingList project as a resource!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’20
EndpointSecurity: es_new_client freezes all operations until other clients decide pending messages?
I have 2 EndpointSecurity apps. App1 is doing the heavy lifting and processes multiple events(ES_EVENT_TYPE_AUTH_EXEC, ES_EVENT_TYPE_AUTH_OPEN, ES_EVENT_TYPE_AUTH_RENAME, ES_EVENT_TYPE_AUTH_UNLINK, ES_EVENT_TYPE_NOTIFY_CLOSE, ES_EVENT_TYPE_NOTIFY_CREATE ). App2 is responsible for checking whether Full Disk Access is granted or not: int main(int argc, char * argv[]) { ttes_client_t *client; auto res = es_new_client(&client, ^(es_client_t *clt, const es_message_t *msg) { }); tt_exit(res == ES_NEW_CLIENT_RESULT_ERR_NOT_PERMITTED ? 0 : 1); } (please note that none of the apps is a System Extension). Sometimes when App1 is runing and App2 executes, the system hangs. After few days of investigation, it seems that starting a new es client (even without registering any messages) causes the system to block all operations until all the currently pending auth requests from other clients are answered. This makes it very hard to reason about the application. It also requires to basically offload everything to
0
0
459
Jul ’20
Reply to Passing ObservableObject to View within NavigationView and editing it
hi, i'll offer three suggestions. there's no need (or there may be, but not in this example) for User to be a class. make it a struct and kill the ObservableObject protocol. struct User: Identifiable { let id = UUID() var name: String init(name: String) { self.name = name } } treat the Users object as a viewModel, and when a change is made to a user's name, provide a method for the Users object to do that. class Users: ObservableObject { @Published var users: [User] init() { self.users = [ User(name: John Doe), User(name: Jane Doe) ] } func updateUsername(for user: User, to newName: String) { if let index = users.firstIndex(where: { $0.id == user.id }) { users[index].name = newName } } } and treat the UserDetailView to not be a live edit, but one where you have parameters users and user coming in; you offload the name you want to edit when the view comes on screen; and when you save the edit, ask the Users object to make that change for you. something like this (with the Save button now also dismissi
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’20
Reply to Update SwiftUI View on NSManagedObject edit
hi, one correction to my last reply: point number (3) wasn't quite right (i had it backwards; sorry, it was the last thing i wrote before heading off to bed). it should have been: (3) instead, if you write something like ExerciceHistoryRow(name: exerciceHistory.name!) and you use var name: String for the View, that will be updated properly. be sure to NOT define this variable using @State, because that gives ownership of the View to SwiftUI. and in general, you'll obviously want to pass along more than just date for a single field in the object ... my conclusions about this whole display not updating situation, especially with Core Data objects (one i've been struggling with for some time): passing a reference to an object to a RowView works fine if it is an @ObservedObject -- and if the RowView makes any changes to the object, you'll know about it. however, deleting that object will crash if the RowView is still held onto by SwiftUI when the deletion occurs. (i think the situation is even more murky when usi
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’20
How to avoid/prevent offloading of emergency response app
I’m with a major Canadian university, developing an app to help users plan for and respond to local hazards, like earthquakes and flooding. Since this is the kind of app you set and forget until an emergency occurs, and there’s a good chance internet access won’t be available to re-download the app once a disaster occurs, what can we do to help our users avoid or prevent offloading of the app? Encouraging users to disable offloading seems like overkill. What other options would you suggest to help avoid offloading in the first place? Thanks!
0
0
329
Aug ’20
Reply to iOS 14 bluetooth problem
same with me, I installed iOS 14 beta on my iPhone 11 Pro Max and after that it just started kicking me out of apps and randomly disconnecting bluetooth. My AirPods 2 and the Pros. I then downloaded iOS 14 and now 14.0.1 and offloaded the beta. But nothing helped. It’s really getting frustrating, especially when your on a phone call. I hope this gets resolved asap.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’20
TTS Alex voice is treated like available when it's actually not
Hello everybody! In my app I allow the user to change TTS voices and English Alex voice is one of possible options. However, there are some cases when it's treated as available when it's actually not. It results in pronouncing the TTS utterance with another voice. To prepare the list of available voices I use next code: NSMutableArray *voices = [NSMutableArray new]; for (AVSpeechSynthesisVoice *voice in [AVSpeechSynthesisVoice speechVoices]) { tt[voices addObject:@{ tttt@id: voice.identifier, tttt@name: voice.name, tttt@language: voice.language, tttt@quality: (voice.quality == AVSpeechSynthesisVoiceQualityEnhanced) ? @500 : @300 tt}]; } To start the playback I use the next code (here it's simplified a bit): AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:text]; utterance.voice = [AVSpeechSynthesisVoice voiceWithIdentifier:voice]; [AVSpeechSynthesizer speakUtterance:utterance]; Cases when AVSpeechSynthesisVoice returns Alex as available when it's not: The easiest way to reproduce it is
3
0
2.6k
Oct ’20
What does this error log message mean?
When I'm debugging my VPN tunnel provider application on the iPhone device I found some error logs in the console: udp_validate_cksum_internal [C8.1:1] udp incorrect IPv4-UDP non-offload checksum 0xeaff ulen 1502 It only appears when I'm tuning the MTU to a bigger value for the NEPacketTunnelNetworkSettings. What does this message mean? Does it mean the inbound udp packet has a bad checksum and will it be dropped by iOS?
3
0
1.4k
Nov ’20
Reply to App quits right after it is launched from home screen
Similar here, but even worse! We are having more and more users who have the same issue after any kind of updates (os updates as well as app updates). The app shows the launch screen and then quits, no even calling didFinishLaunching. In same cases, the workaround is to send the app to icloud (offload) and then restart it, restoring all data from the cloud. Unfortunately, this worked fine in iOS 13 but does not always work in iOS 14.0. Currently, the only way to make the app work again is to delete and reinstall it, letting the user lose all of the data assign to the app. THIS IS A DESASTER for most of our users. We URGENTLY need a solution.
Nov ’20
App quits right after launching
Since iOS 14, more and more users experience a severe problem: When they launch our app, it quits right after showing the launch screen, obviously even before executing one line of code. In some cases, offloading and re-loading the app can help in this situation, but not always. In iOS 13, the problem occurred in the same way, but offloading and re-loading always helped. This seems to be a licence problem and reinstalling is no option, because our app holds critical personal data that the user often did not backup. So what can we do in this situation?
0
0
617
Nov ’20
Reply to System Storage Full
It is November 2020, and my Iphone 6s has just been reset to factory settings because of this. So, no, we cannot assume that Apple has fixed anything in the new updates, nor will they. I've been experience a slow decay of storage space on my, already too compact, 16gb phone. 6gb taken by the storage, so this phone is actually a 9gb phone, sold as a 16gb phone. Over the past 2 months my phone went from the occasional offloading of an app, to having almost 0gb of space. I was so confused, as apple does little to nothing to explain to their customers how to handle the defuncts in the system. I started using icloud, uploading everything possible to it. It did absolutely nothing, nothing at all. You have to go through absurd hoops and hurdles to export your iphone photo library into your computer and separate them from icloud, so that they won't disappear when you delete them off your phone. Learned that lesson before, should out to apple iCloud for losing 500-1000 of my pictures to iCloud in 2018. So, ev
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’20
Reply to What does this error log message mean?
And another found is that on the home Wifi network(which has PPPoE router provided by carrier) with an iOS 14 iPhone the message will be like udp_validate_cksum_internal * udp incorrect IPv4-UDP non-offload checksum * ulen 1506 And the pppoe header length is 6. Compared with previous network with Vlan the error message showed ulen is 1502. I believe there most probably a bug exists somewhere in iOS 14 kernel or in network extension. Since I didn't found such issue under the same condition on iOS 12, this issue may only exists in iOS 14. The reproduce condition is with NEPacketTunnelProvider set the MTU of the UTUN to be a value bigger or equal than 1480(Theoretically we should be able to set this value to a very big size like 65535 and without any problem) or overhead size to be 0, and run it on an iOS 14 iPhone, on a Wifi network which has a Vlan setting or PPPoE, on inbound packets there will be such problem.
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’20