App42 - deactivate whole database for update - app42

Is it possible, to deactive an app (all requests will get a error answer from the app42 service) for a while (or even better, for all except one special user), update the database and after everything is valid again, reactivate the app again?

You can easily deactivate your app through dashboard.
Follow just simple steps:
Login to your AppHQ Management Console
Click on View Apps under App Manager section
Click on Disable to deactivate your app
Same you can follow when you have to activate click on enable.
Let me know if it helps.

Related

How do you restrict a Google App Maker application so that only users in a Google Group can access it?

I have built a Google App Maker application and published it. However, I only want users in a Google Group to be able to access the application (view UI elements) via the deployment link. How do you do this? I referenced this solution to another post: https://stackoverflow.com/a/49577258/9878092. I cannot seem to find where the Application access section that is mentioned in the solution is. Thank you!
Here are the steps you can follow to go to 'Application Access' screen.
From your appmaker window click on 'Setting' icon.
Go to Deployments tab.
Publish new deployment if you haven't done already. If you have already deployed your changes then click on the deployed version and "Edit" button.
This will open the Application Access screen. Select option "Only allow to specific" users. Provide user names who should be able to access the app.

Missing configuration for Application File(s)

I'm new to ServiceNow and have been following the Learning Path on the Developers site. I created a Jakarta Instance and have been making my way through the tutorials. However, I have been consistently running into problems where I am missing configuration options when creating application files. I can't properly set up UI Policies, Events, Notifications, etc. because I'm missing specific options like being able to write scripts and more. I have switched to the "Advanced View" in the "Related Links" but to no avail. The account is an Administrator account and has not been modified at all since the creation of the Instance. Is there something I am missing? Other developers following this track with me currently do not have the same problems so I'm wondering if its account specific or something with configurations. I've attached my Notification file; even in Advanced View, it is missing "Send When" and "Advanced Condition" script.
An example of options not loading: Notification Application File Example
Double check that you are under the Advanced view for these sections.
These should be there for you, Send when and Advanced condition are under the When to send tab within the Advanced view.
If you don't see these under the Advanced view, you should be able to manually add the fields using the Form Designer.
Take a look at the documentation at Form design.
In short
Go to your instance and go to Settings Gear > Developer and change Application to Global
Right click the header and go to Configure > Form Design.
Verify you've selected the Advanced view
Drag the missing fields to the form.
Click Save
Change the Application back to the one you are working with

How to allow Chrome Kiosk App configuration access for administrators?

I'm building a Chrome kiosk app that will be in a public space. Users can interact with the app, but there are a variety of settings (server addresses, timeouts, etc.) that need to be set. I'm looking for a strategy on how to allow access to that administration config.
On first run - This is straightforward, but I want administrators to be able to pull it up again.
Detect if the app ran as a kiosk app or manually - This would kind of work, not sure if it's the greatest
Detect some key combination - Ctrl + Alt + Something switches over to the settings page, this feels like people could stumble on it accidentally.
Is there another approach I'm missing?
If your Chrome device(s) is managed you have a further option which is to use the Chrome App Management area within the Google Apps admin interface.
To do this you code your app to use the storage.managed API and this should allow a Configure section for your app within Chrome App Management.
I haven't tried this myself yet but this appears to be the way the Chrome Sign Builder app is configured with its schedule.
Another approach would be to have an administrator login button in a corner of the app. You can set a default password for administrators, which could then be changed in the settings dialog.
You can also think of combining suggestions you have made, first run and then a key combination, and this could bring up a password prompt as also suggested. For an example of this see the Zebradog Kiosk app which is in GitHub so you can see code of how this could be done.
I use ctrl-alt-S at boot. This allows me to login and make changes. I know you have to do a couple of reboots, but it is out of service during admin time anyway.

Launching the Google Drive sharing dialog in an app. What should be the APP_ID value?

I'm following this article, trying to add a sharing dialog in a web app.
I got the button working in opening the modal popup, but it just prints this error in the console:
Refused to display 'https://drive.google.com/share?id=SOME_LONG_ID&foreignService=explorer&shareService=explorer&shareProtocolVersion=2&command=init&subapp=10&popupWindowsEnabled=true&shareUiType=default&rand=1386925457304&theme=2&client=postMessage&appId=MY_APP_ID&embedOrigin=http%3A%2F%2Fmy_app.appspot.com'
in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
And the modal itself just shows the message "Sorry, sharing is unavailable at this time. Please try again later."
For the checklist at the bottom of the article:
The user is signed in to Google True
The user has installed your app False How do I ask them to install?
The URL of the page that launches the dialog must have the same origin as the Open URL registered for the app. True
So I have 2 questions:
How do I ask them to install my app? It's supposed to be a web app, where there's 1 button to select Drive files via the Picker API (which is now working), and then another button which will sow this Drive sharing dialog to set the permissions of the selected files. There's no need for installation. Will it work for this setup?
What should be the value for the APP_ID? I'm guessing it's the ID in the "Drive SDK" section of the Cloud Console? The console is so confusing and there's so many values for keys, ids, etc. that I have no idea which to use. Here's a screenshot of what I mean by the ID and what I'm trying to use.
(1) Installing means you have to get the user to accept the drive.install scope - instructions here. This will integrate your app with the "open with" menu in Google Drive. But before that can work you will need to tell the Google Cloud Console what url to go to when the user clicks "open" - more instructions. In your case, since you don't actually want to allow the user to open files from Drive you won't be defining any file types, so in reality there won't actually be any visible integration with Drive.
Note that the share dialog will only work on the one page which has the url you specify as the target for "open" (the instructions say this and from experience it seems to be true).
(2) Client ID You can find this in the Google Cloud Console - see above. Mine is a 12 digit number, so yours will probably be too.
I had the same problem. The iFrame error shows up when you call setItemIds if your app_id is wrong. No idea why. Anyway, it started working for me when I used the right app_id -- the one that shows up like in your screenshot.

right-click-then-open-with works but simple left-click does not

At some point in the last couple of days a bug seems to have materialised in my app's Google Drive integration, despite me not having changed anything, and usage remaining fairly constant.
When you left click one of the app's documents in Drive a new about:blank tab opens showing the app's icon and the text "Sorry, an error occurred while opening this file. Please try again. [XXXXX]" where [XXXXX] is a short string that seems to be different every time. The create new works fine, and if you use the right-click menu and open with it also works fine.
All of this makes me think that there is a bug in the latest javascript update to Google Drive's main interface.
In terms of debugging, in the apiconsole the app has...
The initiate oauth2 option unchecked
The allow multiple files option unchecked
Mobile browser support checked
24 mime-types, 61 primary extensions, and 1 secondary extension registered
If it is a bug as Claudio has mentioned, I believe Google Drive SDK documentation needs to be updated too, since 'open' action is described only for "Open With" option:
https://developers.google.com/drive/integrate-open
I'm wondering how to trigger the proper action when registred mime-type can be managed by more than one installed application? Is there a way to set the default open action - or the application which created it will be used as the default? What's happen if you reach the application web by typing the url (not from UI Drive UI create action) and save the content on Drive, since you may be already authorized to do it?