chore(ios): log share extension diagnostics on startup (temporary)

Call getShareExtensionDiagnostics() during the iOS shared-image startup
check and print the result to Xcode logs for share-target investigation.
This commit is contained in:
Jose Olarte III
2026-06-24 19:43:27 +08:00
parent 498a4926bf
commit 402bd2681f

View File

@@ -359,6 +359,23 @@ async function checkForSharedImageAndNavigate() {
} }
try { try {
// TEMPORARY SHARE TARGET DIAGNOSTICS
if (Capacitor.getPlatform() === "ios") {
try {
const diagnostics = await SharedImage.getShareExtensionDiagnostics();
logger.info(`[ShareTarget] Diagnostics ${JSON.stringify(diagnostics)}`);
} catch (diagnosticsError) {
logger.info(
`[ShareTarget] Diagnostics ${JSON.stringify({
error:
diagnosticsError instanceof Error
? diagnosticsError.message
: String(diagnosticsError),
})}`,
);
}
}
logger.debug("[Main] 🔍 Checking for shared image on app activation"); logger.debug("[Main] 🔍 Checking for shared image on app activation");
const imageResult = await checkAndStoreNativeSharedImage(); const imageResult = await checkAndStoreNativeSharedImage();