Search results for

offloading

179 results found

Post

Replies

Boosts

Views

Activity

Reply to How to save return value from function in swift ui and use it
Well from a design perspective I like to use @State variables in views just for dealing with state in the view. What you're doing would seem to classify as part of the business logic of your app so I would offload that logic away from your view to your model or view model. Look up MVVM if you don't know what these are. Anyway if you were to take an MVVM approach your code might look like: struct ContentView: View { @ObservedObject var viewModel: MyViewModel var body: some View { Button(action: { viewModel.readApk() }) { Text(Read Apk) } .padding() Button(action: { viewModel.signApk() }) { Text(Sign Apk) } .padding() } } With this approach processString, usingDirString, and returnDirString are all abstracted away from your view. By keeping your view code and your business logic separate it makes it easier to deal with each of them in a more isolated and clear manner.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’21
Is there a way to determine when the app was restored from being offloaded in iOS 11?
Is there any callback available in iOS framework SDK to find out when an iOS app got restored being offloaded in iOS 11? I need to check the occurrence when the app got restored from the offload of unused apps. So, is there any callback or event to find the same in the iOS framework? Any suggestions are much appreciated. Thanks,
0
0
420
Jul ’21
Reply to Localization in Xcode
Discussed this more with cross-functional teams and not using keys a no-go. This will not work if you want to share localization efforts across platforms beyond Apple which is more of a real-world scenario especially in enterprise settings. For example, Android requires localization keys to not have dots and other kinds of characters, also we found many 3rd party localization services had a character limit on key length. And when looking at very long localization entries, using the value as the key just doesn't make sense. I think sticking with my first intuition in using localization keys is the right way despite all the Apple sessions and samples showing otherwise. Also, just to share I was able to achieve isolating localization configurations by extending Text views to initialize from other Text views. This way, I can offload the localization configurations off the view by creating a bunch of static Text views and let the rest of the app pick them off the shelf. First I create the simple but awkwa
Jun ’21
Reply to Looking for a solution to replace UILocalNotifications
Offloading the alert logic to your servers and implementing push notifications (whether using a 3rd party push provider service, or maintaining your own push server), then sending these notifications at the intervals you wish, and developing notification scheduling as complicated as you can is definitely an option. Currently there is no way to accomplish what you want using local notifications.
Jun ’21
ios private distribution and offloading apps
I have created a privately distributed app, for our employees only. I distribute the app using codes. Some of the employees have their phones set to automatically offload apps. When my private app is offloaded, tapping on the app brings up the message Unable to install The app is no longer available on the App store The options are Keep or Delete. However, if they go into the app store purchases, and find the app, they can download it again just fine. Is there a setting I need to set in appstore connect to make it so it can be downloaded automatically? Is this a bug/known limitation of privately distributed apps?
0
0
443
Jun ’21
Reply to IOS 14 HEATING MY IPHONE
SOLVED (at least for me)! Over several weeks after upgrading from 13.7 to 14.4.x I tried turning off MANY Settings and offloading all 3rd-party apps -- to no avail. Still sluggish, overheating, and fast battery drain anytime screen was on. An apple-support tech mgr suggested doing a full Settings&Content Reset to confirm if a hardware problem. And phone worked fine as as empty new phone... so was definately confused software. So I re-did a full reset and restored from iCloud backup and it SOLVED this problem on my iPhoneSE(1st gen). So do THIS: do a full icloud-backup (pay 99 cents for 1 month increased storage) (Settings/General/RESET ALL CONTENT AND SETTINGS (As it reboots it will reset/reinstall to 14.4.2) Follow phone setup steps and login into your apple ID and restore from the iCloud backup. After doing those my SE was back to normal!! :)
Topic: Safari & Web SubTopic: General Tags:
Mar ’21
Low level API to take control of Neural Engine
Hi, I would love to code with the Neural Engine on my macbook pro M1 2020. Is there any low-level API to create my very own work-loads? I am working with audio and MIDI. As well sound synthesis and mixing. Can I use the Neural Engine to offload the CPU? I am especially interested in parallelism using threads. My programming lanuage of choice is ANSI C and Objective C.
4
0
12k
Feb ’21
Reply to macOS Big Sur Not Enough Free Space
I have a 128 Gig Mac Mini. I was ready to give up on Big Sur after seeing how much free space I needed to free up. Here's how I made the space available. Copy the Big Sur installer to a removable drive and remove it from your startup drive. Run the installer to see how much more space you need. Follow Apple instructions to offload Music and Photos libraries to a removable drive. If you are a developer, you probably have a huge Developer folder in your user library. Copy it to a removable drive and remove it temporarily. These steps worked for me and I was able to upgrade to Big Sur. The installer seemed to do a very good job of cleaning up OS X folders because I had 50 GB available after the install. Plenty of space to copy the Developer folder back to the startup drive.
Topic: App & System Services SubTopic: Core OS Tags:
Dec ’20
Reply to Unterstanding MacOS wifi logs
hi, I don't hope setting your network to less secure is the answer. Although this would fix a lot of problems ;) I think the culprit is: Wed Dect2 10:04:29.904 Driver Event: _bsd_80211_event_callback: APPLE80211_M_ROAM_START (en0) I have the same issue, which is very annoying for video calls. (MBPro 2015/Big Sur and Fritzbox 7580 with Mesh using FB-Extender 3000) No other devices seem to experience this issue. My current knowledge is: Running a ping --apple-time 192.168.188.110 -i 0.1 13:21:12.730147 64 bytes from 192.168.188.110: icmp_seq=3750 ttl=64 time=1.214 ms 13:21:12.836592 64 bytes from 192.168.188.110: icmp_seq=3751 ttl=64 time=3.009 ms Request timeout for icmp_seq 3753snip- Request timeout for icmp_seq 3787 13:21:16.694166 64 bytes from 192.168.188.110: icmp_seq=3788 ttl=64 time=3.420 ms 13:21:16.805075 64 bytes from 192.168.188.110: icmp_seq=3789 ttl=64 time=4.709 ms and a tail -f /var/log/wifi.log Tue Dec 15 13:21:12.857 Driver Event: _bsd_80211_event_callback: APPLE80211_M_ROAM_START (en0) Tue
Topic: App & System Services SubTopic: Core OS Tags:
Dec ’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