简体   繁体   English

在Swift上在后台发送短信

[英]Send SMS in background on Swift

I want to send SMS functionality in background without open popup for SMS. 我想在不发送SMS弹出窗口的情况下在后台发送SMS功能。

To solve this issue I need to make the app send SMS in background. 要解决此问题,我需要使该应用程序在后台发送短信。 There used to be CTMessage Center in CoreTelephony Framework for such cases before. 以前,CoreTelephony Framework中曾经有CTMessage Center用于此类情况。 But now it is not available. 但是现在不可用。 Is there any other way to solve this problem? 还有其他解决方法吗?

There is no way to do this if you want to publish the app to the App Store. 如果要将应用程序发布到App Store,则无法执行此操作。 You can always work with private API but I highly doubt a header dump will reveal anything on sending text in the background. 您可以始终使用私有API,但是我非常怀疑标头转储会在后台发送文本时揭示任何内容。 This is for privacy concerns and Apple will reject apps that use private API. 这是出于隐私方面的考虑,Apple将拒绝使用私有API的应用程序。

If you are willing to pay: this or this (note I am not affiliated, these are just nice ways to solve your problem). 如果您愿意付款: (请注意,我不隶属于您,这些只是解决您的问题的好方法)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM