Shared-Reality-Lab / IMAGE-browser

IMAGE project browser extensions & client-side code
Other
2 stars 0 forks source link

Try Apple's Chrome extension conversion tool to enable extension on Safari/iOS #243

Closed jeffbl closed 1 year ago

jeffbl commented 2 years ago

Apple has a tool for converting a Chrome extension to work on Safari/iOS. It is not clear how well this works, or if our extension requires capabilities that are not supported.

Note that the current extension has to be refactored anyway, but hopefully we can get a first approximation of any potential issues with conversion to Apple platform by just trying to convert the existing extension...

rohanakut commented 2 years ago

@jeffbl I tried to convert the extension to safari. I had used the latest nightly build(as of Aug 7) for the same. The following were my observations:

  1. I did not face any issues in converting the chrome extension to safari. I followed their documentation and did not get any errors during the conversion
  2. On testing the extension on safari, I noticed that the extension was sending a request to the server and getting a response. However, I did not see a response pop-up which displayed the rendering.
  3. Apart from that the extension was very similar(from UI perspective) to its chrome counterpart. I have attached a few screenshots of the UI to show the similarity.
Screen Shot 2022-08-07 at 3 52 27 PM Screen Shot 2022-08-07 at 3 52 43 PM

Note: The following was my system versions when I tested this code. Safari : Version 15.6 Mac: 12.5 Xcode: Version 13.4.1

I believe the converting tool is sensitive to versioning issues, so a Mac below version 11.0 should not be used for converting the extension

jeffbl commented 2 years ago

@rohanakut Thanks - that is awesome that it builds and runs at all! As discussed at tech-arch, if possible to also try the tool to create an iOS version, that is even more useful, since the major gain would be to get IMAGE working on mobile devices.

rohanakut commented 2 years ago

@jeffbl I ran the extension on iOS. The extension builds successfully. However, on running it on an emulator I received the following error

Screen Shot 2022-08-21 at 6 39 42 PM

I believe this error occurs because the extension takes up too much memory or is not optimized

I was not able to proceed further as the extension did not load up on the emulator

rohanakut commented 2 years ago

@jeffbl can this be closed?

21satvik commented 1 year ago

@jeffbl @Cybernide, Closing this issue. I am able to convert Chrome extension to Safari extension using Xcode command-line tools. More on this can be found here.