Mobile Core Services

RSS for tag

Use uniform type identifier (UTI) information to create and manipulate data that can be exchanged between your app and other apps and services using Mobile Core Services.

Mobile Core Services Documentation

Posts under Mobile Core Services tag

12 Posts
Sort by:
Post not yet marked as solved
3 Replies
1.5k Views
I work for one of the networks. I am able to successful download the eSIM in iPhone for iOS 13.*. Where I was taken to unknown state (CTCellularPlanProvisioningAddPlanResult) in iOS 14.0 always also it prompt the os screen to install eSIM("Set up Mobile Plan") Please let me know why it take to unknown state always and why OS screen popup ?, please let me know if any configuration needed specific for iOS 14.x Also attached the configuration & prototype code for your reference       hud.show(animated: true)       let plan = CTCellularPlanProvisioning()       self.request = CTCellularPlanProvisioningRequest()       self.request?.address = "" // SMDP Address       self.request?.matchingID = ""  // Acitvation code.       if let validRequest = self.request {         weak var weakSelf = self         plan.addPlan(with: validRequest) {[weak self] result in           self?.hud.hide(animated: true)           switch result {           case .success:             weakSelf?.alertMessageToUser(title: "Hurray !...", message: "ESIM Downloaded Successfully")             print("Successful")           case .fail:             print("ESIM Download failed, contact your carrier")           case .unknown:             print("Unknown details, contact your carrier")           @unknown default:             print("Unknown details, CONTACT CARRIER")           }         }       }     } <array> <dict> <key>MCC</key> <string></string> // Country Code <key>MNC</key> <string></string> //Network Code </dict> </array>   <key>com.apple.security.network.server</key>   <true/>   <key>com.apple.security.network.client</key>   <true/>   <key>com.apple.CommCenter.fine-grained</key>   <array>     <string>spi</string>     <string>sim-authentication</string>     <string>identity</string>   </array>   <key>com.apple.wlan.authentication</key>   <true/>   <key>keychain-access-groups</key>   <array>     <string>apple</string>     <string>com.apple.identities</string>     <string>com.apple.certificates</string>   </array>   <key>com.apple.private.system-keychain</key> I am successful in download eSIM to iPhone for 13.*, Where I was getting the below error for iOS 14.0.1 Logs(OSACTIVITYMODE enabled) Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.} BackTrace thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1frame #0: 0x0000000104cf9428 My Optus`closure #1 in ViewControllerTwo.installESIM_1(result=unknown, self=0x0000000107904d80, weakSelf=0x0000000107904d80) at ViewControllerTwo.swift:44:25  frame #1: 0x0000000104cf99a4 My Optus`thunk for @escaping @callee_guaranteed (@unowned CTCellularPlanProvisioningAddPlanResult) -> () at <compiler-generated>:0   frame #2: 0x0000000194fe412c CoreTelephony`__60-[CTCellularPlanProvisioning addPlanWith:completionHandler:]_block_invoke + 28   frame #3: 0x0000000195053268 CoreTelephony`__90-[CoreTelephonyClient(CellularPlanManager) addPlanWith:appName:appType:completionHandler:]_block_invoke + 36   frame #4: 0x0000000105077b68 libdispatch.dylib`_dispatch_call_block_and_release + 32   frame #5: 0x00000001050795f0 libdispatch.dylib`_dispatch_client_callout + 20   frame #6: 0x0000000105088890 libdispatch.dylib`_dispatch_main_queue_callback_4CF + 1000   frame #7: 0x0000000194a271e4 CoreFoundation`CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16   frame #8: 0x0000000194a213b4 CoreFoundation`__CFRunLoopRun + 2508   frame #9: 0x0000000194a204bc CoreFoundation`CFRunLoopRunSpecific + 600   frame #10: 0x00000001ab4a5820 GraphicsServices`GSEventRunModal + 164   frame #11: 0x00000001973c4734 UIKitCore`-[UIApplication _run] + 1072   frame #12: 0x00000001973c9e10 UIKitCore`UIApplicationMain + 168   frame #13: 0x0000000104cfb688 My Optus`main at AppDelegate.swift:12:7   frame #14: 0x00000001946e7e60 libdyld.dylib`start + 4
Posted
by
Post not yet marked as solved
0 Replies
381 Views
I am having problems trying to get all the parts of my app registration, certification, etc so it can be submitted to the App Store. At the moment I have a message in Xcode about the provisioning profile not containing a specific certificate. I am not able to find that certificate and am stuck. I would like to follow a guide. Is there such a thing?
Posted
by
Post not yet marked as solved
0 Replies
477 Views
1.We have a requirement, a customer makes the payment from the web app, then it uses the ios app for swiping the card. so as soon as the transaction ends, we need to either close the ios app or give focus to the web app to complete the transaction. we are leveraging the mobile app for card reader functionality.
Posted
by
Post not yet marked as solved
0 Replies
309 Views
Hi, I'm trying to add background observers for the heartrate variables from the health kit which will be used to trigger certain functions ect... However, when I set up my observers whether they be by using the npm package or the instance method discussed by apple - the observers only seem to work when the app is in an active state. I have read threats that say sometimes it just takes a while for the data to be pushed through but I've tested the waters and waited the time and still the observers don't seem to work in a terminated or suspended state. Any thoughts? As well - if it does come down to a frequency matter is there a way to rush the detection of it? As the app being able to receive and act upon the heartrate variable changes is a key feature to my app. If possible - Objective C would be very much preferred. Thanks in advance
Posted
by
Post marked as solved
2 Replies
344 Views
I would like to click an element without user input. I see it's possible in XCUIElement which is a part of the XCTest framework to ensure things are working correctly, and I'm aware of various other testing frameworks that support E2E testing with simulated clicks. But is it possible to trigger this in production outside of testing? E.g. How app remotes work for a TV - pressing a button on the app will move right, left, or click an object on the TV (only remove the TV from this question and have it target the OS it's running on)
Posted
by
Post not yet marked as solved
0 Replies
195 Views
When switch the net network from 5G to 4G in Setting->Cellular->Primary(the current card using for WANN) -> voice & data -> change to 4G. The iOS API SCNetworkReachabilitySetCallback not callback. I try using CTServiceRadioAccessTechnologyDidChangeNotification to get the notification, but won't work too. And using addObserver:forKeyPath to observer the CTTelephonyNetworkInfo instance's currentRadioAccessTechnology value, it not change too. But if you create a new CTTelephonyNetworkInfo instance, the currentRadioAccessTechnology will return a new value which is correct. So it seems the only way to get the new currentRadioAccessTechnology in time, is to start a timer. Is there a graceful way to get it ?
Posted
by
Post not yet marked as solved
8 Replies
901 Views
I stumbled upon a really peculiar issue while running my application that features both a functionality to create image and video attachments from the user's photos and videos using the PHPicker* API and previewing said attachments using the QuickLook API: Whenever I tap to open a photo (e.g. a JPEG) or a video (e.g. a MP4) using the QuickLook API, on an iPhone 13 15.4 simulator device on Xcode 13.3 on a M1 Macbook Pro host machine, I get a crash with the following call stack: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[2]' terminating with uncaught exception of type NSException *** First throw call stack: ( 0 CoreFoundation 0x000000011003bd44 __exceptionPreprocess + 242 1 libobjc.A.dylib 0x000000010cd1ea65 objc_exception_throw + 48 2 CoreFoundation 0x00000001100bcf47 _CFThrowFormattedException + 200 3 CoreFoundation 0x00000001100c7417 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.5 + 0 4 CoreFoundation 0x00000001100aa827 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 243 5 CoreFoundation 0x000000011003a998 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49 6 QuickLook 0x0000000110f37636 __49+[QLItem(PreviewInfo) contentTypesToPreviewTypes]_block_invoke + 484 7 libdispatch.dylib 0x000000011b0f5a5b _dispatch_client_callout + 8 8 libdispatch.dylib 0x000000011b0f6f24 _dispatch_once_callout + 66 9 QuickLook 0x0000000110f37450 +[QLItem(PreviewInfo) contentTypesToPreviewTypes] + 46 10 QuickLook 0x0000000110f37d91 -[QLItem(PreviewInfo) _uncachedPreviewItemTypeForContentType:] + 117 11 QuickLook 0x0000000110f382fe -[QLItem(PreviewInfo) _previewItemTypeForType:] + 150 12 QuickLook 0x0000000110f38104 -[QLItem(PreviewInfo) _getPreviewItemType] + 61 13 QuickLook 0x0000000110fbf4d2 -[QLItem previewItemType] + 59 14 QuickLook 0x0000000110f6ed15 +[QLItemFetcherFactory fetcherForPreviewItem:] + 90 15 QuickLook 0x0000000110fbeb9b -[QLItem fetcher] + 44 16 QuickLook 0x0000000110f22880 -[QLPreviewController previewItemAtIndex:withCompletionHandler:] + 153 17 QuickLook 0x0000000110f587a8 __63-[QLPreviewItemStore previewItemAtIndex:withCompletionHandler:]_block_invoke + 262 18 QuickLook 0x0000000110f8c621 QLRunInMainThread + 51 19 QuickLook 0x0000000110f58673 -[QLPreviewItemStore previewItemAtIndex:withCompletionHandler:] + 181 20 QuickLook 0x0000000110f1c89f -[QLPreviewController internalCurrentPreviewItem] + 222 21 QuickLook 0x0000000110f9c140 -[QLPreviewController(Overlay) _actionButton] + 344 22 QuickLook 0x0000000110f9c81c -[QLPreviewController(Overlay) _toolBarButtonsWithTraitCollection:] + 1147 23 QuickLook 0x0000000110f9a2ff -[QLPreviewController(Overlay) _updateOverlayButtonsIfNeededWithTraitCollection:animated:updatedToolbarButtons:] + 129 24 QuickLook 0x0000000110f999a2 -[QLPreviewController(Overlay) updateOverlayAnimated:animatedButtons:forceRefresh:withTraitCollection:] + 152 25 QuickLook 0x0000000110f1c707 -[QLPreviewController _setCurrentPreviewItemIndex:updatePreview:animated:] + 230 26 QuickLook 0x0000000110f22416 -[QLPreviewController reloadData] + 418 27 <MYAPP> 0x0000000102a03293 __53-[MyPreviewController downloadAttachment]_block_invoke_2 + 611 28 libdispatch.dylib 0x000000011b0f4816 _dispatch_call_block_and_release + 12 29 libdispatch.dylib 0x000000011b0f5a5b _dispatch_client_callout + 8 30 libdispatch.dylib 0x000000011b104325 _dispatch_main_queue_drain + 1169 31 libdispatch.dylib 0x000000011b103e86 _dispatch_main_queue_callback_4CF + 31 32 CoreFoundation 0x000000010ffa8261 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 33 CoreFoundation 0x000000010ffa2a56 __CFRunLoopRun + 2761 34 CoreFoundation 0x000000010ffa1a90 CFRunLoopRunSpecific + 562 35 GraphicsServices 0x00000001209c8c8e GSEventRunModal + 139 36 UIKitCore 0x000000013499c90e -[UIApplication _run] + 928 37 UIKitCore 0x00000001349a1569 UIApplicationMain + 101 38 <MYAPP> 0x0000000102970669 main + 233 39 dyld 0x000000010c6c4f21 start_sim + 10 40 ??? 0x00000002041ad51e 0x0 + 8658801950 41 ??? 0x0000000000000003 0x0 + 3 I tried also selecting a photo or a video using the PHPicker* APIs, and although I get back the file, if I try to query the UTType from the file extension using the [UTType typeWithFilenameExtension:] method, I get back a nil result if the extension passed is either a "jpeg" or a "mp4". The above do not happen if I run the same simulator (iPhone 13 15.4 / Xcode 13.3) on an Intel Macbook Pro host machine, or on a real device. Any ideas?
Posted
by
Post marked as solved
5 Replies
372 Views
I am looking for a way to integrate the emergency services on ios to a third-party app which is made with Flutter. So, instead of manually calling an emergency service by using a flutter package called url_launcher (which is able to send messages, phone calls, and emails), I would like to be able to use the phone's own built-in emergency sos feature instead. Example of Emergency Service (SOS) on IOS Use Emergency SOS on your iPhone - Apple Support When doing some research, I have found two forums on Apple Forums that are asking a similar question as to what I would want to do in my app: - https://developer.apple.com/forums/thread/689973 https://developer.apple.com/forums/thread/108996 I was also looking into Apple's on the SDKs they have available where I have found SDKs and information on : CallKit UIKit Any help/guidance would be greatly appreciated!
Posted
by
Post not yet marked as solved
0 Replies
95 Views
I am developing a privacy first productivity document based app that runs on iOS/MacOS. Is there an apple native way to track some very simple app statistics information? Some (or all) of the following.. Daily active users Average session length Average sessions per day Average number of times feature X is used per session I have been looking and found nothing, and I am loathed to use one of the external services like Google analytics.. because I value user privacy.
Posted
by