Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
用户输入另一个用户的电话号码。如果两个人同时在应用程序内,每个用户都可以点击一个大按钮,使对方的设备同时振动。如何让按钮让对方的 iOS 设备振动?
您需要在两个设备之间建立一些通信线路。一般来说,这是一个非常模糊的问题,但要立即获得振动,您需要一些服务器通过套接字与两个设备进行通信。如果一个设备按下按钮,它会告诉服务器振动另一个设备。然后服务器告诉另一个设备振动。