[iOS] Not able present | Community
Skip to main content
Answered

[iOS] Not able present

  • October 17, 2023
  • 4 replies
  • 188 views

Not able to present overCurrentContext. Need ModalPresentationStyle Support

 

 
 

Best answer by Jacob Cox

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?

4 replies

Eden
Employee
Forum|alt.badge.img
  • Premier Customer Support Engineer
  • October 19, 2023

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?


  • Author
  • New Participant
  • October 20, 2023

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)

  • Author
  • New Participant
  • October 25, 2023

Hi @Eden any update?

 

Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • Answer
  • November 8, 2023

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?