如何在 iOS 中读取 SMS 以及是否能够通过 SMS 中的链接将字符串传递给应用程序 [英] How to read a SMS in iOS and is it able to pass an string to the application via link in the SMS

查看:17
本文介绍了如何在 iOS 中读取 SMS 以及是否能够通过 SMS 中的链接将字符串传递给应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何使用 Xamarin iOS 在 iOS 中读取短信吗?然后我想通过链接将一个字符串从该 SMS 传递到应用程序.例如,当用户点击 SMS 中的链接时,它会将一个字符串值传递给应用程序,并且在应用程序中,一个方法正在等待触发.

do anybody know about how to read a SMS in iOS with Xamarin iOS ? and then I want to pass a string from that SMS to the application via link. For example when user click the link in the SMS it will pass a string value to the application and in the application a method is waiting to trigger that.

推荐答案

虽然不能直接截取短信,但是可以创建一个自定义 URL 方案 以便如果用户点击您的消息将启动您的应用.

Although you can't directly intercept SMS messages, you can create a custom URL scheme so that if a user clicks a link in your message it will launch your app.

这篇关于如何在 iOS 中读取 SMS 以及是否能够通过 SMS 中的链接将字符串传递给应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆