KI-AGENT: iOS Share Target mit Upload-Strecke ergänzen
This commit is contained in:
13
mobile/app/+native-intent.ts
Normal file
13
mobile/app/+native-intent.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { getShareExtensionKey } from 'expo-share-intent';
|
||||
|
||||
export function redirectSystemPath({ path }: { path: string; initial: boolean }) {
|
||||
try {
|
||||
if (path.includes(`dataUrl=${getShareExtensionKey()}`)) {
|
||||
// Zuerst die normale Session laden; der Provider öffnet danach die Upload-Strecke.
|
||||
return '/';
|
||||
}
|
||||
return path;
|
||||
} catch {
|
||||
return '/';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user