@bobfrankston/rmfmail 1.2.37 → 1.2.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/android-bootstrap.bundle.js +34 -0
- package/client/android-bootstrap.bundle.js.map +2 -2
- package/package.json +1 -1
- package/packages/mailx-store-web/android-bootstrap.js +40 -0
- package/packages/mailx-store-web/android-bootstrap.js.map +1 -1
- package/packages/mailx-store-web/android-bootstrap.ts +26 -0
- package/packages/mailx-store-web/package.json +1 -1
|
@@ -10770,6 +10770,40 @@ function installBridge() {
|
|
|
10770
10770
|
const api = {
|
|
10771
10771
|
isApp: true,
|
|
10772
10772
|
platform: "android",
|
|
10773
|
+
// Link / contact / calendar handoff to native apps. On Android THIS
|
|
10774
|
+
// object is window.mailxapi — NOT client/lib/mailxapi.js — so the
|
|
10775
|
+
// openExternal there never ran on the phone, and this object had no
|
|
10776
|
+
// openExternal at all, so app.ts fell through to window.open() (a no-op
|
|
10777
|
+
// in the WebView). That's why preview links / the LinkedIn "View message"
|
|
10778
|
+
// button did nothing even after the mailxapi.js fixes (Bob 2026-06-18,
|
|
10779
|
+
// proven by the [android-link] trace stopping at "parent got linkClick").
|
|
10780
|
+
// We're definitively on the Android host here, so just navigate the top
|
|
10781
|
+
// frame to the mailxapi-intent:// scheme that MainPage.xaml.cs intercepts.
|
|
10782
|
+
openExternal: (url) => {
|
|
10783
|
+
if (!url) return;
|
|
10784
|
+
try {
|
|
10785
|
+
console.log("[android-link] android-api openExternal \u2192 intent " + url);
|
|
10786
|
+
window.location.href = "mailxapi-intent://open/" + encodeURIComponent(url);
|
|
10787
|
+
} catch (e) {
|
|
10788
|
+
console.error("[android-link] openExternal failed", e);
|
|
10789
|
+
}
|
|
10790
|
+
},
|
|
10791
|
+
openContact: (email) => {
|
|
10792
|
+
if (!email) return;
|
|
10793
|
+
try {
|
|
10794
|
+
window.location.href = "mailxapi-intent://contact/" + encodeURIComponent(email);
|
|
10795
|
+
} catch (e) {
|
|
10796
|
+
console.error("openContact failed", e);
|
|
10797
|
+
}
|
|
10798
|
+
},
|
|
10799
|
+
openCalendarEvent: (htmlLink) => {
|
|
10800
|
+
if (!htmlLink) return;
|
|
10801
|
+
try {
|
|
10802
|
+
window.location.href = "mailxapi-intent://calendar/" + encodeURIComponent(htmlLink);
|
|
10803
|
+
} catch (e) {
|
|
10804
|
+
console.error("openCalendarEvent failed", e);
|
|
10805
|
+
}
|
|
10806
|
+
},
|
|
10773
10807
|
getAccounts: () => service.getAccounts(),
|
|
10774
10808
|
getFolders: (accountId) => service.getFolders(accountId),
|
|
10775
10809
|
getMessages: (accountId, folderId, page, pageSize) => service.getMessages(accountId, folderId, page, pageSize),
|