For Android, it is more convenient to use the system’s built-in sharing function without integrating a third-party SDK
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
sendIntent.setType("text/plain");
startActivity(sendIntent);
Just attach the download link to the shared content
Generally, text messages are sent directly with the link address. If you only want to share via text messages, just upload the code directly
Class messageClass = (NSClassFromString(@"MFMessageComposeViewController"));
if (messageClass != nil) {
// Check whether the current device is configured for sending SMS messages
if ([messageClass canSendText]){
MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
picker.messageComposeDelegate = [SpriteMessageShareMneger sharedManager];
picker.body = @"内容";
[viewController presentViewController:picker animated:YES completion:nil];
}else{
//设备不支持短信功能
}
}
If other platforms are supported, you can use sharesdk
The SMS template can be directly attached with a download link. Our company uses SUBMAIL, and there is a download link. You can check out http://submail.cn/
Use WeChat sdk to share to WeChat friends or Moments, and you can still have two packs of cigarette money left... It’s amazing....
For Android, it is more convenient to use the system’s built-in sharing function without integrating a third-party SDK
Just attach the download link to the shared content
Can’t you include a download link in the invitation text message? . .
Generally, text messages are sent directly with the link address. If you only want to share via text messages, just upload the code directly
Class messageClass = (NSClassFromString(@"MFMessageComposeViewController"));
If other platforms are supported, you can use sharesdk
The SMS template can be directly attached with a download link. Our company uses SUBMAIL, and there is a download link. You can check out http://submail.cn/