feat(deeplinks): Create custom event for universal links on macos
This commit is contained in:
parent
dadfc58126
commit
ea490b3ca9
|
@ -4,9 +4,13 @@
|
|||
#include <QUrl>
|
||||
#include <QDebug>
|
||||
|
||||
#include <QGuiApplication>
|
||||
#include <QFileOpenEvent>
|
||||
|
||||
#import <AppKit/NSApplication.h>
|
||||
#import <objc/runtime.h>
|
||||
|
||||
|
||||
@interface StatusApplicationDelegate: NSObject <NSApplicationDelegate>
|
||||
- (BOOL)application:(NSApplication *)application
|
||||
continueUserActivity:(NSUserActivity *)userActivity
|
||||
|
@ -24,8 +28,9 @@ continueUserActivity:(NSUserActivity *)userActivity
|
|||
QUrl deeplink = QUrl::fromNSURL(url);
|
||||
|
||||
// TODO #12434: Check if WalletConnect link and redirect the workflow to Pair or Authenticate
|
||||
|
||||
// TODO #12245: set it to nim
|
||||
|
||||
QFileOpenEvent event(deeplink);
|
||||
QGuiApplication::sendEvent(qGuiApp, &event);
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in New Issue