如何手动退出小程序?

小程序 文章 2020-08-24 12:01 0 81 全屏看文

如何手动退出小程序?How to manually exit the applet?

如何手动退出小程序?

最近开发小程序时,添加了强制版本更新的功能。但在由于微信版本过低导致getUpdateManager API不可用和下载新版本时由于网络原因未下载成功这两种情况下,想实现自动退出小程序(再次启动小程序为冷启动的退出模式)。程序上应该怎样实现


In recent development of applets, the ability to force version updates has been added. However, when the getupdatemanager API is not available due to the low version of wechat and the download of the new version is not successful due to network reasons, we want to realize the automatic exit of the applet (restart the applet is the cold start exit mode). How to realize it programmatically

回答:

谋谋谋:

自动退出? 自动不了 没这么智能

citizen four:

可以退出,但是再进来就取决于用户了

微喵网络:

做不到

云山雾海:那出现这两种情况要怎样交互更好一些呢
微喵网络:没办法

-EOF-