I've already develop a little Firefox Extension using XUL and i would like to re-write it better using the new Firefox Add-On SDK.
Looking on web (and in Mozilla Dev Center) i havent found a guide/tutorial that explain from a starting point to the end. All guides describe some component in a standalone way, there are not full examples from the First line of code, to the end.
Adding on this, each "tutorial" in Mozilla Dev Center have some warning that say "this tutorial is deprecated" and so on.
So, there is a clean starting point to lear Firefox Add-On using SDK ?
For toolbars specifically, there is a toolbar API example provided with the Addon SDK source on github.
Related
I have a legacy safari extension which I need to convert into Safari App Extension to submit into Extension Gallery. I am new to Xcode therefore, not familiar with it's build and run process. I tried looking into official documentation from developer.apple.com but it is so abstract.
Why do we need to create a parent app in Xcode before creating a
safari extension target?
If so what parent app template should I
choose? Cocoa App?
Where I can find starter tutorials on Xcode?
What is the submission process to Extension Gallery?
How can add the extension under development to my safari through xcode for testing?
I heard they need the URL for extension to approval, when we are submitting extension through developer account why to host it on URL?
Any documentation or answers to the above questions would be very helpful. Thank you.
On 2. and 3, I had the same struggles - I wrote up a tutorial on basic style sheet injection in Safari App Extensions here: https://ulyngs.github.io/blog/posts/2018-11-02-how-to-build-safari-app-extensions/
I'm converting the legacy safari extension to safari app extension too and have some answers for your questions:
Because app extension is more as functional extension then safari browser extension and could bring more features to you. And as per Apple says: safari app extension gives more communication and data exchange between Safari and your native app, docs.
But I have no more ideas if you only want an extension for safari why this is only way to do extensions.
Yes, you should use the Cocoa App template. If you don't need the window for your app, you can remove it simply in Main.storyboard or make app as a "service".
A lot of docs from Apple I've read but understood a bit then expected. So I found some youtube channels (they are 2 or more years old but some things seems don't changed) Some vieos here and the Osx Dev Daily playlist on this channel. And of course official swift docs if you select swift for your app as PL.
I haven't read about this, but think it must be submitted with your Cocoa App.
First of all you should to run your app target and only after this you should run your extension target and choose "Safari" in showed window to run in. If you have no the signing at the moment so ensure to enable "Allow unsigned extensions" in Development > Allow unsigned extensions in Safari app.
Don't meet this info, could you share it, pls? (sry, don't have enough knowledges)
Hope, it helps to you!
P.S. also recomend to see the converting docs, but it may be insufficient for converting :)
EDIT: it's seems to be incorrect to remove app window or change the default menus created by Cocoa App template for app submit for App Store. Some people got negative decision of app submit because of menus changes of redundant items or app have poor functionality or has not it at all. So consider to read the submit docs.
Please, share your experience when you'll have success app submit!
EDIT 2: Today I found template in Xcode 10.1 that can be used for Safari Extensions directly. It is as previous workflow (template Cocoa App + add extension target) but there is safari extension target already included
The app window and menu is simplified for developers:
So you don't need work with your app and you can concentrate on extension only.
I just started using xamarin in visual studio for building cross-platform apps, and i was searching on the internet for some tutorial etc, and i ran into a website "material.io" and i found this amazing bottom navigation
So i searched on google for a tutorial to make that bottom navigation in xamarin.forms cross-platform environment.
But i didn,'t find anything, so i hoped that someone here at stackoverflow knew how to or could provide me with code or a tutorial.
thanks in advance
As Jason already mentioned, something like this requires a custom renderer. However, you're lucky since someone has already done the hard work for you.
There's a Xamarin.Android control called BottomNavigationBar which has been ported to Xamarin.Forms in the project BottomNavigationBarXF. You'll also find an example of how to get started on the latter repository. On iOS, the control defaults to the standard page with tabs on the bottom.
I am developing a Firefox addon for making fullpage screenshots of web pages. I know that several good addons that do this are already available, but we have some specific needs so I thought I would try to make my own.
I read that I can do screenshot --fullpage in the Firefox Developer Toolbar. This seems to works well. Can I also call this command from within my addon? If so, how would I go about that?
I am getting started with Firefox addon development and have got myself acquainted with the Add-on Builder. Is this wizard all I need to get deep into Firefox addon development (if so, where would I create the XUL files and how would I create a custom toolbar?). Or is it that one cannot implement all features using this Add-on Builder? Also are there any good tutorials which explain how to get started with Firefox addon development using the Add-on Builder (because it seems so much easier).
Tutorials which I already have referred to:
https://developer.mozilla.org/en/Extensions
http://blog.mozilla.org/addons/2009/
But these are not specific to using the Add-on Builder. I would please like someone to point me to where I can find help to develop using the Add-on Builder.
Also if I am developing the addon locally using the SDK is there any good editor which I can use which will show me the list of commands that I can execute (like Eclipse in Java).
The red line is where i want my icon to appear. Is it possible to do it using the addon builder.
There are currently two kinds of Firefox extensions:
Classic extensions use a XUL-based user interface. They can do almost anything but it might take a bit until you see some results with your extension. For documentation on classic add-ons see How do I write a Firefox Addon?
Extensions based on Add-on SDK use HTML for user interface. The SDK provides a simple but limited API. In particular, it explicitly won't let you create toolbars, only single toolbar icons (which makes sense, extensions shouldn't be wasting so much screen space). It won't let you determine the icon placement either - as of Firefox 4 all extension icons are supposed to appear in the add-on bar (the user can customize the toolbars and change the placement however). You can get low-level platform access with chrome authority however. The official Add-on SDK documentation is pretty much all you've got here I think.Edit: Ok, the information on limitations of the Add-on SDK is somewhat outdated. As of Firefox 30, adding toolbars is possible. Also, as of Firefox 29 the icons are placed in the main toolbar by default - the add-on bar is no more. So the only real limitation remaining is the icon placement.
The Add-on Builder is merely a web interface to the SDK - it allows you to edit the extensions conveniently but otherwise it uses Add-on SDK to generate the extensions.
To put an icon directly in the toolbar currently, your best bet is to use Erik Vold's toolbar module ( available in Builder as a package ). here is an example that does that:
https://builder.addons.mozilla.org/addon/1044724/latest/
I am running Firefox 4 beta for testing, and unfortunately Google hasn't updated their Gears extension for Firefox 4. At this point, it even seems that Google might not update Gears for Firefox 4. Do you guys know of any trick to get Gears to run on Firefox 4?
(For reference, here is where you can download the OS X XPI for Gears.)
Google have explicitly deprecated Gears; they no longer support it (as of about a year ago!).
They have switched to focus on HTML5 and other related new browser features. In effect they're saying that all the functionality provided by Gears can be done using HTML5.
Here's a link to an article about them dropping it (but there's plenty of others if you google for it):
http://latimesblogs.latimes.com/technology/2009/11/google-gears.html
The down-side is that not all browsers do support all the HTML5 features that are needed to replicate the Gears functionality, so by deprecating it they've cut off support for some browsers. Chrome is fine, of course! But the other browsers are catching up - certainly Firefox 4 should be fine.
A lot of the functionality provided by google-gears is becoming part of html5 - firefox has implemented local storage since 3.5.
Modernizr provides api detection - but not abstraction - I imagine there may be some out there on the internet (Google Gears / HTML5 has only recently appeared on my radar). So far I've not found any way for an html5 app to create a desktop shortcut though.
Update:
See also:
http://www.phonegap.com/
https://github.com/zefhemel/persistencejs
http://code.google.com/p/webstorageportabilitylayer/