简体   繁体   English

单击链接后如何从用户取消对话框获取回调以选择移动应用?

[英]How to get callback from user cancelling dialog to select mobile-app after clicking on a link?

I am working with HTML on mobile-devices and want to offer map-routing-functionality. 我正在移动设备上使用HTML,并希望提供地图路由功能。 On mobile devices it makes sense to offer the use the local app, and this is working fine - I do that with changing the 在移动设备上,提供使用本地应用程序是很有意义的,而且这很好用-我通过更改

location.href

Is it possible to get any result from the device-dialog? 是否可以从设备对话框中获得任何结果? I want to forward the user to another function, if he is canceling the dialog-box without selecting an app. 如果他要取消对话框而不选择应用程序,我想将用户转发到另一个功能。

Create an event handler for the cancel button, would be the most obvious solution to me. 为取消按钮创建一个事件处理程序,这对我来说是最明显的解决方案。 But I am not sure if I understand your problem. 但是我不确定我是否理解你的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM