Is there a way to use the SMS URL to open the SMS app with multiple recipients? I've tried similar approaches to the mailto: protocol but it's not playing nice.
Starting with iOS 4.x you can include multiple recipients as shown below:
MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init];
controller.recipients = [NSArray arrayWithObjects:#"1-222-333-4444", #"1-222-333-5555", nil];
As you probably noticed, the documentation does not mention any support for multiple recipients, so I think the answer is currently "No".
You could file an enhancement request here.
Related
I am having a problem making gifts (pack of coins, lives, etc). I have been using this guide.
I think I did everything correctly at https://developers.facebook.com/, created the coin type, made the object and used its id.
This is my code for request:
FBSDKGameRequestContent *gameRequestContent = [[FBSDKGameRequestContent alloc] init];
gameRequestContent.message = #"Take this coins";
gameRequestContent.title = #"Choose users";
gameRequestContent.filters = FBSDKGameRequestFilterAppUsers;
gameRequestContent.actionType = FBSDKGameRequestActionTypeSend;
gameRequestContent.objectID = #"386681778192859";
[FBSDKGameRequestDialog showWithContent:gameRequestContent delegate:self];
My question is how I can take a message or a callback from this request at another device. I was looking for a solution at facebook site, but I didn't find anything. In general, is it possible or do I have to make custom server?
I'm using UIActivityViewController to share in Facebook,email,twitter and texting. Everything works just fine with the exception of texting. When I select the texting option it doens't attach the image to the text. Here is my code:
NSMutableArray *tmp=[[NSMutableArray alloc]init];
[tmp addObject:tmpImage];
[tmp addObject:#"Hello"];
NSArray *activityItems =[NSArray arrayWithArray:tmp];
UIActivityViewController *activityVC=[[UIActivityViewController alloc]initWithActivityItems:activityItems applicationActivities:nil];
[self presentViewController:activityVC animated:YES completion:nil];
any of you knows why is not attaching the image to the texting part?
I'll really appreciate your help.
In app MMS (multi-media messaging) is not supported for the current iOS, only SMS is supported.
Possible solutions include:
•copying the image to the clipboard and having the user paste it into the messaging text box manually. (You can open a texting app that supports mms via the URI scheme "sms://" (just load that URL)
•loading the images into the eMail application and sending the eMail as a text message to either one of your servers that can sort out the issue, to the iMessages eMail address, or to the sms/mms eMail address (ex. a phone number of 404-345-6789 with AT&T could receive a text message if an eMail was sent to 4043456789#txt.att.net, all major carriers have an eMail address for every phone number).
I am creating a project in which my app users can send mail within my app. While users sends each mail to their friends, i want that mail to send to my mail . so i added my mail in BCC. But the problem is user can easily delete my mail in BCC. I want my BCC to be not deletable .
I used the following code to send mail
MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setSubject:#"4 Frax"];
[controller setMessageBody:#"Hai dude" isHTML:NO];
[controller setBccRecipients:[NSArray arrayWithObject:#"office#4Frax.com"]];
if (controller) [self presentModalViewController:controller animated:YES];
[controller release];
Can anyone please tell me how to avoid user from deleting my mail in BCC.
Thanks in advance.
You can't, there is no API available to do this. Since this is a privacy issue. Apple will not allow you to get the user e-mail (or let them mail you it) without expres permission from the user.
Thus the mail composer will not allow you adjust, hide and fields. You can only prefill it.
I'm not sure that's a nice way to treat your users... but if you really want to do it I think your only option is to set up your own mail server and route your message through that. As rckoenes notes, there is no API to do it on iOS.
I need to send sms programmatically.
I found sending programmatically email in google,But did n't found clear info regarding sending sms programmatically.
Can any one pls post some sample code.
Thank u in advance.
You can prompt the user to send a message with the number to send it to filled out, along with the body of the message, but you cannot send an SMS without the user completing the send.
Here is a perfect blog that can be used to send sms through application. SMS sending through application is introduced with iOS4.0 So you can not use MFMessageComposer in the previous versions of iPhone.
iOS 4 will be the minimum requirement.
hAPPY iCODING...
-(void)displaySMSComposerSheet
{
MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
picker.messageComposeDelegate = self;
NSString *str=#"Your String for SMS"
picker.body=str;
[self presentModalViewController:picker animated:YES];
[picker release];
}
Use this and add framework MessageUI.framework and call this function whenever you want to send message
I'm trying to post links through the iPhone facebook connect without using the feed control. I want to simulate how the publish a story works on facebooks website, where I pass a link, and it returns back an image, story title, and a link. Right now I only know how to use the feed control, but I'm thinking there has to be a way to use possibly stream.Publish or showDialog, just not really sure which..
Anyone have any experience with this?
Use the facebook demo app.
in the SessionViewController, add this to get extended permission:
- (void)askPermission:(id)target {
FBPermissionDialog* dialog = [[[FBPermissionDialog alloc] init] autorelease];
dialog.delegate = self;
dialog.permission = #"publish_stream";
[dialog show];
}
Then you need a method to publish the stream. They don't say exactly what data to send. But whateer it is you package it in a dictionary. Since it is a URL, a good guess would be an NSString. You can get more from the API page
I found 5 that might work:
Feed.publishActionOfUser
Feed.publishStoryToUser
Feed.publishTemplatizedAction
Feed.publishUserAction
Also there is:
Links.post
But you'll have to figure it out, depending on what you want to do. You also need to kow the key. I picked url
- (IBAction)sendURL:(id)target{
NSMutableDictionary *args = [[[NSMutableDictionary alloc] init] autorelease];
[args setObject:urlString forKey:#"url"];
FBRequest *uploadPhotoRequest = [FBRequest requestWithDelegate:self];
[uploadPhotoRequest call:#"Links.post" params:args];
}
I've left some args out, but you get the idea. I;m not sure exactly what one you want, so you'll have to research the method calls.
Hope this helps.