sách gpt4 ai đã đi

iphone - iMessage 应用程序可检测接收者是否安装了相同的应用程序

In lại 作者:行者123 更新时间:2023-12-03 21:14:43 27 4
mua khóa gpt4 Nike

我正在尝试在 iOS 10 设备上开发 iMessage 应用程序。

想知道我是否可以检测接收器是否安装了我的应用程序?

因为我想在安装后执行某些操作,反之亦然。

1 Câu trả lời

看看这个链接: https://developer.apple.com/reference/messages/msmessage

您可以阅读此内容:

iOS device with the iMessage app installed.

If the extension is not running, the system launches it using the init(session:) presentation style. The conversation’s selectedMessage property is set to the tapped message, and the view controller’s willBecomeActive(with:) and didBecomeActive(with:) methods are called.

If the extension is running, the system calls the view controller’s willSelect(:conversation:) method. It then updates the conversation’s selectedMessage property and calls the view controller’s didSelect(:conversation:) method.

Override willSelect(:conversation:) or didSelect(:conversation:) to respond to the user selecting a new message.

You can also save messages to the file system and process them later.

iOS device without the iMessage app installed.

The system opens the App Store for iMessage and prompts the user to install the iMessage app.

总而言之,iMessage 会为您检测用户是否已经安装了该应用程序。但您将无法为用户没有该应用程序的部分自定义操作。如果用户确实安装了该应用,当他点击您的 iMessage 时,您可以执行任何您想做的操作。

关于iphone - iMessage 应用程序可检测接收者是否安装了相同的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39720945/

27 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com