Posts

Post not yet marked as solved
0 Replies
437 Views
We encountered an issue where some users were unable to receive push during the overwrite installation process。 After a while it was normal again。 Checking the code shows that the registerForRemoteNotifications method is requested twice in a short period of time。 Therefore, we want to know what are the possible reasons for 410 unregistered。 Thanks。
Posted Last updated
.
Post not yet marked as solved
0 Replies
502 Views
I use this mehtod for screenshots,but it blocking mainthread, Is there another way to replace it , { UIGraphicsBeginImageContextWithOptions(imageSize, NO, 0);   CGContextRef context = UIGraphicsGetCurrentContext();   for (UIWindow *window in [[UIApplication sharedApplication] windows]) {     CGContextSaveGState(context);     CGContextTranslateCTM(context, window.center.x, window.center.y);     CGContextConcatCTM(context, window.transform);     CGContextTranslateCTM(context, -window.bounds.size.width * window.layer.anchorPoint.x,                -window.bounds.size.height * window.layer.anchorPoint.y);     if ([window respondsToSelector:@selector(drawViewHierarchyInRect:afterScreenUpdates:)]) {       [window drawViewHierarchyInRect:window.bounds afterScreenUpdates:YES];     } else {       [window.layer renderInContext:context];     }     CGContextRestoreGState(context);   }   UIImage *image = UIGraphicsGetImageFromCurrentImageContext();   UIGraphicsEndImageContext(); } Is there an alternative way to take screenshots I need your help
Posted Last updated
.
Post marked as solved
1 Replies
1.1k Views
I build APNs but It show me the logs I guess THERE might be some permissions I haven't configured LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2021-10-15 19:01:24.734879+0800 CodeNotificationExtension[28603:929180] [default] Attempt to map database failed: permission was denied. This attempt will not be retried. 2021-10-15 19:01:24.734947+0800 CodeNotificationExtension[28603:929180] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2021-10-15 19:01:24.735022+0800 CodeNotificationExtension[28603:929180] [Intents] +[INAppInfo appInfoWithAppProxy:] Unable to create app info with application record: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
Posted Last updated
.
Post not yet marked as solved
0 Replies
1.5k Views
2021-10-15 12:26:06.427879+0800 CodeNotificationExtension[17524:630750] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2021-10-15 12:26:06.428337+0800 CodeNotificationExtension[17524:630750] [default] Attempt to map database failed: permission was denied. This attempt will not be retried. 2021-10-15 12:26:06.428386+0800 CodeNotificationExtension[17524:630750] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2021-10-15 12:26:06.428445+0800 CodeNotificationExtension[17524:630750] [Intents] +[INAppInfo appInfoWithAppProxy:] Unable to create app info with application record: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
Posted Last updated
.