mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
copilot/enable-multiple-webxdc-instances
FLAG_ACTIVITY_NEW_DOCUMENT document-task matching (same URI → reuse existing task) only works with single-intent startActivity(). When ShortcutInfoCompat.setIntents() passes a multi-intent array, Android internally calls startActivities(), which does not honour the document- task model: different shortcuts end up sharing a task, and opening the same app from chat and from a shortcut creates duplicate tasks. Fix: replace setIntents(getWebxdcIntentWithParentStack()) with setIntent(getWebxdcIntent()) so the shortcut fires the exact same single intent as a direct open. The now-unused getWebxdcIntentWithParentStack helper and TaskStackBuilder import are removed.
ArcaneChat Android Client
A Delta Chat client for Android. Learn more at: https://arcanechat.me
WebXDC
This app has some extended support for WebXDC apps:
window.webxdc.arcanechata string with the ArcaneChat version and can be used by app developers to detect when they can use the ArcaneChat-specific features.sendToChat(): extra propertysubjectcan be set to a text string to set message/email's subject.sendToChat(): extra propertyhtmlcan be set to a string of html markup to set the HTML part of the email/message.sendToChat(): the file object parameter also accepts atypefield that can be one of:"sticker""image""audio""video""file"(default iftypefield is not present)
- Inside apps, clicking external links is supported, ex. to open in browser, so you can include links to your website or donation pages.
manifest.tomlfield:orientation, if you set it to"landscape"your app will be launched in landscape mode.
Credits
This app is based on the official Delta Chat client with several improvements.
This app uses a modified version of the Chatmail Core Library.
Description

