how to add a 'rate this app' button in my firefox os app? - firefox-os

I have uploaded an app in firefox app store. This app can be installed in firefox mobile os and firefox desktok browser.
How can I add 'rate this app' button and 'share' button in my application?
app link: https://marketplace.firefox.com/app/anti-mosquito
Thank You.

Here's a library for adding prompts to rate the application in an unobtrusive manner:
https://github.com/dcoloma/fxosRate
It's not exactly a "rate" and "share" button, but might serve the same purpose, or could be built-upon for your use-case.

Related

SKStoreProductViewController or similar solution possible for websites?

We would like that when the visitor of our website clicks on the appstore button to download the app, he is not redirected to the appstore but a popup of the appstore appears where he can download the app.
This function already exists in some apps and is called "SKStoreProductViewController".
We would now like to include this on our website so that our customers stay on the website when they download the app.
We do not want to bypass the app store
As you stated yourself this is used in native apps. You want to use it in a browser, i.e. not possible.
Using Smart App Banners is probably as close as you can get in a browser: https://developer.apple.com/documentation/webkit/promoting_apps_with_smart_app_banners
Or you "fake" the app store and build your own modal, which then links to the store page.

How to allow sites to play protected content in electron desktop app

I have an LMS its videos playing perfect on chrome and firefox browser but getting this on electron app:
Please ALLOW from Chrome settings > Site settings > Protected Content.
I don't know how to enable protected content in my electron app there is nothing in there API documentation.
You can look at to this document for solving problem.
https://www.electronjs.org/docs/tutorial/testing-widevine-cdm

Lightbox Enable in Chrome App/Extension

I have created my first Chrome extension/app and found out that lightboxes do not function inside the app. I created the app from the Google example kiosk app. I'm only using webview in the app and have no other customizations. It just points to a link.
I want to use the app as an auto-launch Kiosk app on a Chromebox. Via this website I found that 'alert' and 'confirm' are a disabled web feature on chrome web apps.
I am wondering if it is possible to enable alert and confirm in the Chrome app so that lightboxes will work when interacting with a website.
Thanks in advance.
Yes you can definitely call alert box inside a chrome extension, just like you would in a normal javasript file as stated in this thread.
chrome.browserAction.onClicked.addListener(
alert("Im an alert box triggered by Chrome Extension")
);
The link you provided suggests that you can create a custom popup/lightbox as a workaround. There's a complete tutorial here.
Happy coding! :)

Using mailto in a standalone|fullscreen web application on iPhone

I am developing a mobile web application and want to add the ability to send an e-mail from the web application using a link with the href="mailto:..." attribute. I coded the link and tested it and it works fine in IE 10 running on a Desktop. Next I tested on Safari running on an iPhone and it also works fine, as long as the web application is run in Safari. But, if I add that same web application to the home screen and run it as a fullscreen application from the home screen, pressing the mailto button has no effect. I want the ability to open the default e-mail application on the iPhone if the user clicks the link if the web application is in standalone/full screen mode. Is there a way to do this and if so how?
E-Mail
This issue is resolved as of iOS 7.0.3.

How to open link in safari browser in my ipad sencha app

I made a app in sencha architect 2 for magazine reader, now I put link on social icon in my app.
When I click on that social icon, its opening in my app but I want to open it in default browser.
I build my app using http://build.phonegapp.com
Can anyboday help me how to open link in extarnal browser.
Any Example that help????

Resources