dis-moi / extension

:speech_balloon: Never browse alone again
https://www.dismoi.io/
Other
42 stars 11 forks source link

Safari extension : how complex is it ? #1083

Open MaartenLMEM opened 3 years ago

MaartenLMEM commented 3 years ago

Etre présent sur Safari nous permettrait de gagner beaucoup d'utilisateurs sur ordinateurs. Safari avait son propre écosystème mais semble avoir évoluer vers une meilleure compatibilité.

Mais quelle est la complxité désormais exactement ? Peut on la publier en août par exemple ?

https://www.appsystem.fr/197990/safari-14-apple-indique-comment-ajouter-extensions-chrome-firefox-sur-son-navigateur/

zhinu commented 3 years ago

To read : https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari

zhinu commented 3 years ago

So far what we know :

The advantages of having the extension on Safari :

  1. It makes us reach devices that we are unable to reach otherwise (Ipad, Iphone)
  2. Safari is widely used by ios users and their devices are more interconnected that other environment (those installing dismoi on their Macbook will automatically have it on iphones and ipads when using safari)
  3. Having access to the Apple environment is good for the public perception

The remaining questions:

  1. Is the implementation difficult, or is it similar to what is done for Gchrome or Mfirefox ?
  2. How complex/different is Xcode ?
zhinu commented 3 years ago

Apparently Apple made the process super easy, so as to maximize the amount of developpers porting extensions to safari.

xcrun safari-web-extension-converter .

^This should do the tick when xcode is installed from a macbook with a xpi unzipped.

i can't test since I don't own an apple device.

zhinu commented 3 years ago

I managed to install the extension on Chrome, by converting a chrome version of the application. Screenshot_20210809_084648 Matching context and xpath seem to work. Subscribing to channels didn't work (saying app in not installed), and the logo doesn't turn grey when a notice already appeared.

The testing on my hand, was very tedious, since I didn't own a mac I used https://github.com/kholia/OSX-KVM to create a virtual machine and it was slow and several crashes occurred (Big Sur being not fully compatible).

@JalilArfaoui

MaartenLMEM commented 3 years ago

@zhinu From my point of view, job is done here. And with good news.

Now, what about creating a new card in the backlog : Create a package to publish Dismoi on Safari ? And adding in this card some checklist with requirements and specific changes needed ?

zhinu commented 3 years ago

image The authorization requested and explained by Safari