Code Monkey home page Code Monkey logo

Comments (16)

suanmei avatar suanmei commented on May 13, 2024

这个问题是由于自定义 timeout 引用错误导致的,而且 timeout 没有设置默认值

修复记录:
22b01b5

from callapp-lib.

minlx avatar minlx commented on May 13, 2024

@suanmei 重新下载包 V1.6.4 下载不了啊,大大 document.hidden一直都是 false。。。。

from callapp-lib.

suanmei avatar suanmei commented on May 13, 2024

@suanmei 重新下载包 V1.6.4 下载不了啊,大大 document.hidden一直都是 false。。。。

下次不要在已经关闭的 issue 中 reply 撒,这样子收不到消息-_- 我先重新打开,回复你一下😄

callapp-lib

我今天中午下载还是可以的,包下载不了要么是 npm 的问题,要么是你的网络有点问题,后者可能性居多哈

document.hidden一直都是 false,你是用的哪个版本的包呢,又是如何检测 document.hidden 的呢

from callapp-lib.

minlx avatar minlx commented on May 13, 2024

@suanmei 之前下的是 1.6.1的版本

from callapp-lib.

minlx avatar minlx commented on May 13, 2024

@suanmei重新下载包V1.6.4下载不了啊,大大document.hidden一直都是假....

下次不要在已经关闭的问题回复撒,这样子收不到消息-_-我先重新打开,回复你一下😄

callapp-LIB

我今天中午下载还是可以的,包下载不了要么是npm的问题,要么是你的网络有点问题,后者可能性居多哈

document.hidden一直都是false,你是用的哪个版本的包呢,又是如何检测document.hidden的呢

@suanmei 之前下的是1.6.1的版本 下载的时候指定版本号 下载不了

from callapp-lib.

suanmei avatar suanmei commented on May 13, 2024

@suanmei重新下载包V1.6.4下载不了啊,大大document.hidden一直都是假....

下次不要在已经关闭的问题回复撒,这样子收不到消息-_-我先重新打开,回复你一下😄
callapp-LIB
我今天中午下载还是可以的,包下载不了要么是npm的问题,要么是你的网络有点问题,后者可能性居多哈
document.hidden一直都是false,你是用的哪个版本的包呢,又是如何检测document.hidden的呢

@suanmei 之前下的是1.6.1的版本 下载的时候指定版本号 下载不了

npm install --save [email protected]

是这样吗

from callapp-lib.

suanmei avatar suanmei commented on May 13, 2024
npm install --save [email protected]

应该是可以的哈,如果实在不行就

npm uninstall --save callapp-lib
npm install --save callapp-lib

最新版本,timeout 的问题已经修复了,你可以试一下哈,好了的话说一下,我关闭这个 issue

from callapp-lib.

minlx avatar minlx commented on May 13, 2024
npm install --save [email protected]

应该是可以的哈,如果实在不行就

npm uninstall --save callapp-lib
npm install --save callapp-lib

最新版本,timeout的问题已经修复了,你可以试一下哈,好了的话说一下,我关闭这个问题

好的,我下载试试,谢谢你啦

from callapp-lib.

believeZJP avatar believeZJP commented on May 13, 2024

延时不会解决这个问题,打开APP返回网页后,过2s还会执行回调。我现在的解决方案是,监听visibilitychange事件,如果发生变化,则清除延时事件。

        let timer = setTimeout(()=>{
            Toast.info({
                content: '请安装微信',
                duration: 500
            });
        },2000)
        document.addEventListener("visibilitychange", function() {
            clearTimeout(timer);
        });

from callapp-lib.

minlx avatar minlx commented on May 13, 2024
npm install --save [email protected]

应该是可以的哈,如果实在不行就

npm uninstall --save callapp-lib
npm install --save callapp-lib

最新版本,超时的问题已经修复了,你可以试一下哈,好了的话说一下,我关闭这个问题

好的,我下载试试,谢谢你啦
已经可以下载了,但是callback 唤起app成功后还是会执行

from callapp-lib.

minlx avatar minlx commented on May 13, 2024
npm install --save [email protected]

应该是可以的哈,如果实在不行就

npm uninstall --save callapp-lib
npm install --save callapp-lib

最新版本,超时的问题已经修复了,你可以试一下哈,好了的话说一下,我关闭这个问题

好的,我下载试试,谢谢你啦
@suanmei 已经可以下载了,但是callback 唤起app成功后还是会执行

from callapp-lib.

believeZJP avatar believeZJP commented on May 13, 2024

另外在Android里测试的时候发现有的APP已经装了,但是无法唤醒,在没有安装应用宝的情况下没有跳转到应用宝,直接走了option中的fallback的网址。

// 微信配置
const weixinOpt = {
    protocol: 'weixin://',
    intent: {
        package: 'com.tencent.mm',
        scheme: 'weixin://'
    },
    appstore: 'https://itunes.apple.com/cn/app/id414478124',
    yingyongbao: 'https://a.app.qq.com/o/simple.jsp?pkgname=com.tencent.mm',
    fallback: location.origin
};

weixinApp.open({
        path: '',
        param: {},
})

@suanmei

from callapp-lib.

suanmei avatar suanmei commented on May 13, 2024

延时不会解决这个问题,打开APP返回网页后,过2s还会执行回调。我现在的解决方案是,监听visibilitychange事件,如果发生变化,则清除延时事件。

        let timer = setTimeout(()=>{
            Toast.info({
                content: '请安装微信',
                duration: 500
            });
        },2000)
        document.addEventListener("visibilitychange", function() {
            clearTimeout(timer);
        });

好的,我这么处理一下

from callapp-lib.

suanmei avatar suanmei commented on May 13, 2024

yingyongbao

现在没有库可以满足所有场景下的唤端,总会有不满足的哈~

在没有安装应用宝的情况下没有跳转到应用宝,直接走了option中的fallback的网址

应用宝是只有在微信中打开app不成功的情况下才会跳转应用宝地址,可以看一下库里面对各种场景的处理~

from callapp-lib.

suanmei avatar suanmei commented on May 13, 2024

ios 自测已修复,安卓身边暂时没测试机

from callapp-lib.

suanmei avatar suanmei commented on May 13, 2024

1.6.6 已发布,如上所述问题已经fix
@minlx @believeZJP

from callapp-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.