首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ionic 5,短信检索器,StartWatching()不工作

Ionic 5,短信检索器,StartWatching()不工作
EN

Stack Overflow用户
提问于 2020-11-16 22:23:14
回答 1查看 292关注 0票数 0

我正在使用documentation Sms Retriever中的代码

代码语言:javascript
复制
export class HomePage implements OnInit {

    hash: any;
    Sms: any;
    constructor(private smsRetriever: SmsRetriever) { }

    ngOnInit(): void {

        this.smsRetriever.getAppHash()
            .then((res: any) => alert(res))
            .catch((error: any) => alert(error));

        this.smsRetriever.startWatching()
            .then((res: any) => alert(res))
            .catch((error: any) => alert(error));
    }
}

当我启动应用程序并在我的手机上打开页面,然后收到一条短信,什么也没有发生!

我做错了什么吗?

EN

回答 1

Stack Overflow用户

发布于 2021-02-10 17:47:26

根据https://github.com/hanatharesh2712/ionic-native-sms-retriever-plugin-master/issues/3上的最后一条评论,这个插件似乎可以在签名版的apk上工作。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64859763

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档