4

I try to run js pre/post processor to modify webpage after finish share extension, but finalize method failed to run.

In Apple document it said that both Share extensions and Action extensions can benefit from this js processor, but my finalize method not get called. Only run method get called. Anyone know how to make this work ?

Accessing a Webpage

In Share extensions (on both platforms) and Action extensions (iOS only), you can give users access to web content by asking Safari to run a JavaScript file and return the results to the extension ... https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html

Here is sample project: https://app.box.com/s/9ild73l9gbmfazrmjerk

Cœur
  • 37,241
  • 25
  • 195
  • 267
sarunw
  • 8,036
  • 11
  • 48
  • 84

1 Answers1

0

In your code you have a typo in function type, should be "finalize" instead of "finalizea".

Deniss Fedotovs
  • 1,384
  • 12
  • 22