我正在使用documentation Sms Retriever中的代码
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));
}
}当我启动应用程序并在我的手机上打开页面,然后收到一条短信,什么也没有发生!
我做错了什么吗?
发布于 2021-02-10 17:47:26
根据https://github.com/hanatharesh2712/ionic-native-sms-retriever-plugin-master/issues/3上的最后一条评论,这个插件似乎可以在签名版的apk上工作。
https://stackoverflow.com/questions/64859763
复制相似问题