1

It is a similar question to the following.

When the application is started from the push notification specified by OpenDirect while the application is Inactive, both the WebView in the SDK and the WebView specified by you will start up. I want to prevent WebView in the SDK from starting, but before handling push notification as in the solution to the above question [[ETPush pushManager] setOpenDirectDelegate: self]; I am doing, but WebView in the SDK will start up.

It seems that WebView in the SDK is running before didFinishLaunchingWithOptions, but please tell me specific solution.

9
  • linkhttps://salesforce.stackexchange.com/questions/141054/opendirect-etinternallandingpagepresenter
    – taku
    Aug 28, 2017 at 7:31
  • Are you implementing the methods of ExactTargetOpenDirectDelegate in your delegate? Aug 29, 2017 at 12:29
  • Yes, we implement ExactTargetOpenDirectDelegate in delegate. It also implements the didReceiveOpenDirectMessageWithContents method and the` shouldDeliverOpenDirectMessageIfAppIsRunning` method. As I was debugging, the didReceiveOpenDirectMessageWithContents method was called on WebView in the SDK. Is there any way to solve it?
    – taku
    Aug 31, 2017 at 0:55
  • What SDK version are you using so I can verify against the code? Sep 1, 2017 at 12:00
  • In your implementation of the delegate, you are calling [[ETPush pushManager] setOpenDirectDelegate:self] first, correct? And then, in shouldDeliverOpenDirectMessageIfAppIsRunning you return YES? Those in combination will lead to the path of the delegate ONLY handling the presentation of the open direct message. Sep 1, 2017 at 12:03

0

You must log in to answer this question.