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.

  • linkhttps://salesforce.stackexchange.com/questions/141054/opendirect-etinternallandingpagepresenter – taku Aug 28 '17 at 7:31
  • Are you implementing the methods of ExactTargetOpenDirectDelegate in your delegate? – Brian M. Criscuolo Aug 29 '17 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 '17 at 0:55
  • What SDK version are you using so I can verify against the code? – Brian M. Criscuolo Sep 1 '17 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. – Brian M. Criscuolo Sep 1 '17 at 12:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.