How to make Fake phone call in objective c

ios objective-c

659 просмотра

3 ответа

340 Репутация автора

Any one knows about Implement Fake Receiving Phone Call[Fake Receiving Phone Call]

Автор: Subramani Источник Размещён: 18.07.2016 08:53

Ответы (3)

-1 плюса

1384 Репутация автора

You can use this code for phone call:

NSString *StrPhone = [NSString stringWithFormat:@"telprompt://%@", PhoneNumber];
        NSURL *url = [NSURL URLWithString:StrPhone];
        [[UIApplication  sharedApplication] openURL:url];
Автор: Saurabh Jain Размещён: 18.07.2016 08:55

1 плюс

3574 Репутация автора


Just code for fake call

  1. It will work only when app is open
  2. Add image incoming call image to full view. (In order to make more attractive use UIImageViewAnimation to animate slide to answer)

    UIImageView *callImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0,self.view.frame.size.width, self.view.frame.size.height)]; [[self view] addSubview:callImageView];

enter image description here

  1. Play ringtone using using AVAudioPlayer
Автор: abhishekkharwar Размещён: 18.07.2016 09:06

0 плюса

2660 Репутация автора

I think you need to user Third party service like twilio who will initiate a real call to the phone.

Автор: fvisticot Размещён: 22.04.2017 10:39
Вопросы из категории :