How to enable kiosk mode for a web app in the Android Management API - android-management-api

One of our customers wants to enable the single kiosk mode with a web app. When we apply this configuration, it doesn't work: the web app is not displayed, and the device is not usable (even if the Chrome app is installed).
When the kiosk mode is disabled, the web app is perfectly usable. So I guess there is an issue on the AMAPI side.
Here is the application data of the profile:
"applications": [
{
"packageName": "com.google.enterprise.webapp.<generated-id>",
"installType": "KIOSK",
"defaultPermissionPolicy": "GRANT"
}
],
Thanks a lot in advance for you help!

To enable kiosk mode for a web app you need to set installType: KIOSK for the web app and also add Chrome in the policy with installType: FORCE_INSTALLED. This is because the web app links to Chrome. See below an example of how the policy should look like.
Note that in this example the policy also restricts accessible URLs via a managed configuration, which is often required for web app kiosks. The managed configuration is set for Chrome and applies to the web app as well since the web app is rendered by Chrome.
{
"applications": [
{
"packageName": "com.android.chrome",
"installType": "FORCE_INSTALLED",
"managed_configuration": {
"URLBlacklist": ["*"],
"URLWhitelist": ["en.m.wikipedia.org"]
},
"defaultPermissionPolicy": "GRANT"
},
{
"packageName": "com.google.enterprise.webapp.x7206d5dbf82b6e3f",
"installType": "KIOSK",
"defaultPermissionPolicy": "GRANT"
}
],
"statusBarDisabled": true,
"keyguardDisabled": true
}

Related

Is it possible to use free dynos for review apps by default?

We are a team that uses Heroku pipeline. By default, each review app uses hobby dyno. Is it possible to configure the pipeline to use free dyno for each review app by default?
Yes. One of of the configuration options you can place inside of app.json can be used to configure the number and type of dynos used when spinning up your review app.
Documentation app.json
Configuring Review Apps
The majority of the configuration options you can use at the root of app.json can be overridden in the environment.review key.
Example:
{
"environments": {
"review": {
"formation": {
"web": {
"quantity": 1,
"size": "free"
}
}
}
}
}

how to add privacy policy in manifest for my app in ms teams

I need to add a text as a privacy policy in the manifest. Where shall I add it in the manifest?
{
"developer": {
"name": ,
"websiteUrl": ,
"privacyUrl": ,
"termsOfUseUrl":
},
"description": {
},
"permissions": ["identity", "messageTeamMembers"],
"validDomains": [
"contoso.com",
"token.botframework.com"
]
}
How can i update this section?
#Anu The privacyUrl only accepts a URL. You cannot add a plain text as privacy policy in the manifest.
Are you using the App Studio tool from Microsoft? It's an app that installs directly into Teams itself, to help with various Teams development tasks, and one of these is to provide a nice graphical interface to create and edit your app manifest. In this tool you can capture the url to your privacy policy, wherever it is hosted (to confirm, it does need to be a url to a page hosted somewhere).
In the final manifest, if you do want to edit it by hand rather, it would look something like this:
"privacyUrl": "[your web address to your own policy goes here]",

Firefox Android Addon: Add search engine

I've created an extension with the following manifest to add a search engine to Firefox.
{
"manifest_version": 2,
"name": "Google Browse by Name search engine",
"description": "Adds a search engine that searches Google using its Browse by Name feature",
"version": "1.0",
"applications": {
"gecko": {
"strict_min_version": "55.0"
}
},
"chrome_settings_overrides": {
"search_provider": {
"name": "Browse by Name",
"search_url": "https://www.google.com/search?sourceid=navclient&gfns=1&q={searchTerms}",
"keyword": "bbn",
"favicon_url": "https://www.google.com/favicon.ico",
"is_default": false
}
}
}
This works as expected on Firefox desktop, adding an option to the list of enabled search engines. However, it does not appear to work on Firefox Android, I assume because chrome_settings_overrides is not supported on Android.
Addons making use of the legacy API appear to work correctly (e.g. Startpage), adding search engines to the Android browser, but since Firefox is dropping support for legacy (non webextension) extensions this is no longer a solution.
What is the correct way to add a search engine to Firefox for Android using an addon?
I am aware that users can add a search engine available on a webpage by long-pressing on its search field, but I would like to offer an extension to automatically install the search engine (and save users from having to find a page offering the correct search field).

Ionic project not working on real device using web api

I am developing an mobile application for android using Ionic and Web Api.
The application working fine when I run this app on the browser emulator but when I trying to deploy on real device it gives me an error login failed.
In app.js
angular.module('starter', ['ionic', 'starter.controllers', 'starter.services', 'services.hub', 'ngStorage', 'angularUUID2', 'ui.bootstrap', 'roy.signalr-hub','angularMoment'])
.constant('/api', {
url: 'http://ipAddress/api'
})
ionic.project file
{
"name": "ChatApp",
"app_id": "",
"proxies": [
{
"path": "/api",
"proxyUrl": "http://ipAddress/api"
}
]
}
Having an login screen click on login should be happen. I am not able to debug the code using real device also.
If you are working only on Android Device, I will suspect you are working on a Windows. If that's the case, then when you run the project in your device, the console should be working. If it does not show you any error, then there's a logic error in the code. But as a suggestion, use console.log on cases like this one.
May be you can use console.log() or 'ionic alert()'.

How to create a desktop app version of a website using NW.js?

I've been using Fluid App (OS X) in the past to create standalone desktop apps of specific web apps I want separated from the browser, have their own dock icon, and not have any of the regular browser fluff (toolbar, address bar, etc.). Fluid app, though, has been neglected for a long time and certain newer web apps (e.g. Inbox from Google) completely fail to load in it.
So I'm looking for a simple way to create a desktop app that will have a single window loading a single website, and I think that NW.js would be ideal for that.
What should be the configuration process for building such a simple desktop app for just a webview for a given URL, using NW.js?
If you simply want to open a single webpage in a NW.js program, it is exceptionally easy.
First make sure you read: https://github.com/nwjs/nw.js/wiki/How-to-run-apps
Especially the MacOS section.
Make a directory your_project/
create a file in your_project/package.json
Then configure package.json:
{
"main": "https://github.com",
"name": "github app",
"description": "Github demo app",
"version": "0.1.0",
"keywords": [ "demo", "node-webkit" ],
"nodejs": false,
"window": {
"title": "Github",
"icon": "logo.png",
"toolbar": false,
"frame": true,
"width": 1024,
"height": 768,
"position": "mouse",
"min_width": 400,
"min_height": 200
},
"webkit": {
"plugin": true
}
}
You can run nwjs from the nwjs.app/Contents/MacOS/nwjs path_to_your_project
Note the "nodejs": false option this disables the nodeapi for the application, if you end up needing nodejs in part of your application make sure what whatever webview you use had nodejs disabled as this is a major security flaw, do your research - do it right.
Also note that nothing is preventing the user to access content from other domains in the above example.
You will eventually want to look at packaging your application, which is also quite simple: https://github.com/nwjs/nw.js/wiki/how-to-package-and-distribute-your-apps

Resources