Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • At the moment to IOS, didn’t discovery anything code that works when the user clicks on salesforce in-app message.

    • What we know?

      • We need to intercept the click, but the click is only intercepted in the code of the step that we cannot change to redirect the user, because the code snippet is in an installed lib that cannot be changed;

      • The click is trigged on method sfmc_handleURL from MCCordovaPlugin

      • The code need the same main method initialize to satisfy the react call, like that:

        Image AddedImage Added

REACT

  • With all codes created, now we will call the initialize method on React, so we will create a file to export the library that we created

    • We will to to import the Plugins from @capacitor/core

    • Create an interface that contains our main method initialize()

    • Register the Android and IOS classes on capacitor, using the Plugins method imported

    • Export the code

    • Now, the code is ready to called