iOS Safari Web Extension restrictions

Hey,

  1. Is it allowed to inject an HTML item above a web page on iOS using Safari Web Extension?
  2. If yes what amount of screen space can we allocate to the UI?

Example:

Accepted Reply

  1. Yes - your extension's JavaScript can add content anywhere on the page. However, the best way to do that depends on which page is being loaded, and that can be tricky.
  2. It depends on the device (different devices have different widths, the device could be rotated, if it was an iPad, it could be in multitasking mode). You should use responsive design to design different UIs based on the width of the current page.
  • @bweinstein thanks for the answer.

    Regarding the second question. What ratios are allowed use? E.g. 90% of the width and 30% of the height or there is no strict guideline on this? Thanks.

Add a Comment

Replies

You can do so from javascript check this video

https://youtu.be/bspr-BS7_Rw?t=1162

  1. Yes - your extension's JavaScript can add content anywhere on the page. However, the best way to do that depends on which page is being loaded, and that can be tricky.
  2. It depends on the device (different devices have different widths, the device could be rotated, if it was an iPad, it could be in multitasking mode). You should use responsive design to design different UIs based on the width of the current page.
  • @bweinstein thanks for the answer.

    Regarding the second question. What ratios are allowed use? E.g. 90% of the width and 30% of the height or there is no strict guideline on this? Thanks.

Add a Comment