1

I'm getting the following result when I try to initialize the Messenger component of UIActivityViewController:

enter image description here

I'm using this code to instantiate my UIActivityViewController:

 NSString *textToShare = @"Text that will be shared";
        NSArray *itemsToShare = [[NSArray alloc] initWithObjects:textToShare, nil];
        UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:itemsToShare applicationActivities:nil];
        activityVC.excludedActivityTypes = [[NSArray alloc] initWithObjects: UIActivityTypePrint, UIActivityTypeCopyToPasteboard, UIActivityTypeAssignToContact, UIActivityTypeSaveToCameraRoll, UIActivityTypePostToWeibo,UIActivityTypePostToFacebook,UIActivityTypePostToTwitter, nil];
        [activityVC setValue:@"My Subject Text" forKey:@"subject"];
        [self presentViewController:activityVC animated:YES completion:nil];

I then get the following error in my logs when I attempt to send with Message

Launch Services: Unable to find app identifier com.apple.MobileSMS
2013-07-31 01:27:15.180 Coolist[54111:c07] Application tried to push a nil view controller on target <MFMessageComposeViewController: 0xa38db30>.

Is this just a simulator problem?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Apollo
  • 8,874
  • 32
  • 104
  • 192
  • check this:- http://stackoverflow.com/questions/9910366/what-is-the-bundle-identifier-of-apples-default-applications-in-ios test app in device not simulator. – Nitin Gohel Jul 31 '13 at 05:29
  • 1
    iMessage don't work on simulator. Test yourself – LE SANG Jul 31 '13 at 05:30
  • The iOS simulator does not have a Messages app, and can't simulate message sending (see [here](http://stackoverflow.com/questions/9012393/testing-sms-in-the-ios-simulator)). – Greg Jul 31 '13 at 05:31
  • @iT if you notice, though, the simulator doesn't have the Mail app either, but it simulates mail creation just fine. I find this odd. But yea, thanks for the advice guys. – Apollo Jul 31 '13 at 21:00

0 Answers0