android - 我的App需要做好友邀请的功能,怎么破?
伊谢尔伦
伊谢尔伦 2017-04-17 13:23:56
0
5
607

我们要做的App需要做好友邀请的功能,例如:我在App中邀请你加入一个事件,而你没有安装这个App,所以需要通过短信邀请的方式,想要邀请好友下载并安装应用。
但是找遍了现在的短信平台,都做不了邀请类短信,这个事情现在怎么破?
征集各种解决方案!!!

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(5)
PHPzhong

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

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

刘奇

Can’t you include a download link in the invitation text message? . .

Ty80

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/

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template