![]() People can share photos from your app to Facebook with the. When users choose your Share extension, you display a view in which they compose their content and post it. To preview a link share to iTunes or Google Play, enter your URL into the Sharing Debugger. Select some content, Control-click to reveal a contextual menu, and choose Share. From there we can do what we like with it, but in this project the JavaScript we need to write is remarkably simple: we pull the "customJavaScript" value out of the parametersĪrray, then pass it to the JavaScript eval()įunction, which executes any code it finds. View the Social area in Notification Center. To begin we will set up a basic application with a TextField to hold our URL keeping a variable in the ViewController class. When its appropriate for an application to download remote resources, such as images, differs from application. Share extension: Appears as an icon in the iOS share sheet, and when selected opens a Drafts window with options to edit/adjust the text, assign tags/flags, and. That's all the code required to send data back to Safari, at which point it will appear inside the finalize()įunction in Action.js. swift and navigate to the viewDidLoad() method. NSExtensionItem에서 JavaScript Code를 사용할 수 있다. > NSExtensionItem - Apple.docs Goal - NSExtensionItem을 사용 ![]() Supporting Suggestions in Your App’s Share Extension 이런 Share Extension에 JavaScript code를 주입한 Extension을 만들어 보겠다는 것이다. share extensions - can run JS on the currently opened web page and return data to the extension Safari app extensions on macOS. ![]()
0 Comments
Leave a Reply. |