You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when opening the webxdc-app from a webxdc-info-message, check dc_msg_get_webxdc_href(). if set, open the app with sth://base/HREF instead of sth://base/index.html
if the app is already open, make sure, the location is changed (probably the same way), in any case, JavaScript's location properties should be set appropriate and hashchange should be fired as needed
listen to event DC_EVENT_INCOMING_WEBXDC_NOTIFY. on receiving, add a notification with text set to "APPNAME: TEXT"; TEXT comes from the event. note, that the msg_id from the event may refer to a webxdc-instance or a webxdc-info-message (in the latter case, use get_parent() to get the instance)
jsonrpc types should be similar; if sth. is missing there, this is another task.
r10s
changed the title
add webxdc selfAddr/notify/href/ratelimit APIs on Desktop (M2/M3)
add webxdc selfAddr/notify/href/ratelimit APIs (M2/M3)
Nov 27, 2024
however, it has an app icon etc, no network etc. it is fine to start directly. if that is unexpected for existing users, ppl will learn it. also, the old indirection has barely prevented ppl from opening the app, when they already tapped curiously the info-message :)
the following task are open to complete M2/M3 proposal desktop-sided:
change
window.webxdc.selfAddr
to "self_addr" property returned by dc_msg_get_webxdc_info()add and set
window.webxdc.sendUpdateInterval
to "send_update_interval" property returned by dc_msg_get_webxdc_info()add and set
window.webxdc.sendUpdateMaxSize
to "send_update_max_size" property returned by dc_msg_get_webxdc_info()when tapping an webxdc-info-message (dc_msg_get_info_type() returns DC_INFO_WEBXDC_INFO_MESSAGE), open the webxdc-app directly, do not move up (instead, the app menu should provide "Show in Chat, cmp add "show in chat" to webxdc menu deltachat-android#3447, but that can also be done later)
when opening the webxdc-app from a webxdc-info-message, check dc_msg_get_webxdc_href(). if set, open the app with
sth://base/HREF
instead ofsth://base/index.html
if the app is already open, make sure, the location is changed (probably the same way), in any case, JavaScript's location properties should be set appropriate and hashchange should be fired as needed
listen to event
DC_EVENT_INCOMING_WEBXDC_NOTIFY
. on receiving, add a notification with text set to "APPNAME: TEXT"; TEXT comes from the event. note, that the msg_id from the event may refer to a webxdc-instance or a webxdc-info-message (in the latter case, use get_parent() to get the instance)jsonrpc types should be similar; if sth. is missing there, this is another task.
for reference, new spec is available already at https://github.com/webxdc/website/tree/next-main/src-docs/spec (
finally, make sure, the webxdc app does not exit when
descr
is left out, see #4359corresponding Android / iOS PR: deltachat/deltachat-android#3438 , deltachat/deltachat-android#3449, deltachat/deltachat-ios#2412
The text was updated successfully, but these errors were encountered: