Answered

[iOS] Not able present

  • 17 October 2023
  • 4 replies
  • 80 views

  • New Participant
  • 4 replies

Not able to present overCurrentContext. Need ModalPresentationStyle Support

 

 
 
icon

Best answer by Jacob Cox 9 November 2023, 00:59

View original

4 replies

Userlevel 3
Badge

Hey @Jenz 👋 Eden from the support engineer team here.

 

In order to present content and Messenger spaces using the iOS SDK, you can use the different present methods shown in our documentation here. If you were looking for something else, can you give more details about the issue you had here?

Hi @Eden 
I am referring to different modalPresentationStyle (fullScreen, overCurrentContext, popover..) available in UIViewController. Is there anyway to present Intercom screens with UIModalPresentationStyle?

I presented Intercom help center using below code.

Intercom.present(.helpCenter)


As you can see here it presented as separate window. I want to present inside the app itself(overCurrentContext)


Eg: I tried below method but getting error.

let vc = Intercom()
vc.modalTransitionStyle = .coverVertical
vc.modalPresentationStyle = .overCurrentContext
present(vc, animated: true)

Hi @Eden any update?

 
Userlevel 4
Badge +5

Hi @Jenz !

Sorry for the delayed response here! 

As built, the SDK will always open up a separate screen like that. Any customizations would be up to your team to implement. That said, I’m happy to write up a Feature Request for our Product Team so they know there’s some customer interest in that behavior. Can you provide more context around why you want it to open within your app’s screen instead of popping up in a separate screen?

Reply