Still, I haven’t had any luck opening the app.
My Link:
https://sixteen-server-c008110f8759.herokuapp.com/.well-known/apple-app-site-association/
Method to open the link:
static void onReceiveDarwinNotification(CFNotificationCenterRef center,
void *observer,
CFStringRef name,
const void *object,
CFDictionaryRef userInfo)
{
dispatch_async(dispatch_get_main_queue(), ^{
NSURL *url = [NSURL URLWithString:@"https://sixteen-server-c008110f8759.herokuapp.com/launch/sixteen"];
if ([[UIApplication sharedApplication] canOpenURL:url]) {
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) {
NSLog(@"🔗 Opened universal link: %d", success);
}];
} else {
NSLog(@"❌ Cannot open URL");
}
});
}
I'm using a Darwin notification from the Shield extension to communicate with the main app, and that communication works perfectly. I also tried using NSUserActivity, but had no success. I’m stuck with the following errors:
...retrieving pasteboard named com.apple.UIKit.pboard.general failed with error: Error Domain=PBErrorDomain Code=10 "Pasteboard com.apple.UIKit.pboard.general is not available at this time." UserInfo={NSLocalizedDescription=Pasteboard com.apple.UIKit.pboard.general is not available at this time.}
Failed to open URL https://sixteen-server-c008110f8759.herokuapp.com/launch/sixteen: Error Domain=FBSOpenApplicationServiceErrorDomain Code=4 "(null)" UserInfo={NSUnderlyingError=0x14f3b25e0 {Error Domain=FBSOpenApplicationErrorDomain Code=3 "Request is not trusted." UserInfo={BSErrorCodeDescription=Security, NSLocalizedFailureReason=Request is not trusted.}}, NSLocalizedFailure=The request to open "com.apple.mobilesafari" failed., FBSErrorContext=147937300, BSErrorCodeDescription=InvalidRequest}
This is a React Native app with a native Swift module used to integrate the FamilyControls framework. please help me to come out of this blocker.
Topic:
App & System Services
SubTopic:
General
Tags: