How do I test a program made with Google Drive API - google-api

Beginner question here. Let's say I have my program in Javascript and it's connected to a server. The goal of this program would be that once you right click on a document, it appears in the "Open With" tab. How would I be able to test that this works? How would i get it to appear within this tab? This is probably some dumb oversight on my part,
Thanks in advance.

What you're trying to do is Connect apps to Drive. To do that, your app must be a Chrome app and it must be uploaded on the Chrome store.
If you've done that, follow these steps:
Click the "My Drive" dropdown button in Google Drive.
Click "More" amongst the selection.
Click "+ Connect more apps".
A window will appear showing different apps. Type the name of your app in the Search bar.
Choose the app and click "Connect" button.
You're app will now appear in the Open-with contextmenu (right-clicking) if it is able to open your Drive files.

Related

Open a popup (e.g. native browser) from a Teams desktop client app tab

Is there any way to pop open a browser window from a Teams app tab (desktop client)?
I came across the following link and from my interpretation of the reply it seems it's not possible.
Quoted from link for reference:
Unfortunately it’s not possible to use window.open in Teams tabs. Because we block opening of new windows to arbitrary sites within our Teams Desktop Client (for security reasons) you need to always use microsoftTeams.authentication.authenticate (if you want a popup window) or microsoftTeams.tasks.startTask (if you want an iframe-based dialog) to open a secondary app view.
It's not very clear to me what the microsoftTeams.authentication.authenticate reference above is suggesting.
Alternatively, if not a browser window, can we attempt to open another app installed on the device (e.g. Excel)?
Thanks in advance!
Are you just wanting to launch a new browser entirely? If so, a regular anchor tag, with a target attribute (e.g. ...), will work fine (I'm doing this in a tab myself, and it's working without problem).
You could try using a TaskModule to open a custom HTML/ Javascript or an iframe based widget inside a popup from within your Teams tab.
microsoftTeams.authentication.authenticate() will let you Authenticate the user against you tab. You can find the docs for this here.

Google cloud shell missing web preview button

I stepped away from my sample Transport-Tracker project, which had been working just fine.
Now, when I run the Google Cloud Shell, the web preview button is no longer present. Also missing is the file transfer button. The Cloud Shell only includes the "Send key combination" and "Terminal settings" buttons.
I've tried this in both IE and Chrome with the same result.
What am I doing wrong?
Thanks.
This is due to a CSS bug. When you have the Google Cloud Platform navigation panel on the left opened, then open a Cloud Shell, the Web Preview button is pushed off the screen.
To fix, simply close the navigation panel by pressing the hamburger button in the top left. (You can reopen the panel, and the Web Preview button will be fixed.)
Lo and behold, today the web preview icon appears. I suspect it may have something to do with trying to open the full cloud shell before a connection to the projector has been established.

Firefox User Agent Switcher - how do I get to it?

https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/
I've installed it in Firefox, but, how do I actually get to it? I don't see it in my toolbar, I don't see if it I right click anywhere close to my toolbar. It's not one of the Chrome-looking extension buttons. Thanks.
Right click your navigation toolbar and click "Customize", then scroll down and
find User Agent Switcher icon. You can drag&drop it to your navigation toolbar.
You can start using it this way.
Instructions here: http://chrispederick.com/work/user-agent-switcher/screencasts/#access-firefox-4-video
Underneath tools you should see a "Default User Agent" drop down. Roll over this menu item and you should see alternative User Agents. Screenshot # http://www.bemoko.com/training/help/product/useragent-switcher including an import file with a good collection of mobile user agents (nicely organised and annotated with screen dimensions)

Browser simplified

I have a customer (a very old person) who wants an application that "has nothing to do with the interwebz". So what I'm going to do is an offline web application; but my problem now is the browser. Is there a way to simplify chrome or another browser just like I show in the image? Without bars nor buttons nor anything.
Thank you.
Create an application shortcut in Chrome:
Open the url of your website
Open the Wrench menu
Create application shortcut
This will open Chrome without any address bar or toolbars.

IE: When clicking Google +1 a new window opens and then tries to close again

I have recently introduced some Google +1 buttons to my site.
I am calling the button like this:
<g:plusone size="small"
count="false"
callback="plusone_vote"
href='http://www.mysite.com'>
</g:plusone>
The plusone_vote callback is a js function which pushes a tracking event to Google Analytics.
This works for the majority of users. However, a small number are getting an issue. When they click on the +1 link a new IE window appears and then displays the message
"The webpage you're viewing is trying to close this window.
Do you want to close this window?"
If the user clicks "No" they get they Google +1 privacy page ("I'm fine with Google using my +1's and other info around content and ads on non-Google websites"). They can then click the "Share my +1's button" and the window closes. However, they "+1" action never appears to happen. The button does not turn blue and the page does not show up in their profile.
The users were all using IE8 or IE9 on Windows 7 - a combination which works fine for most users. The only thing that appears to be the same is that they all use the same type of laptop - I'm struggling to see the significance of that though.
Any ideas?
The actual issue is with your IE security settings: the page MUST be displayed as a regular 'internet' webpage in order for IE to correctly run the +1 and Facebook Like plugins without this error message.
In order to fix this:
Go into Internet Options in the IE menu
Go to Security Settings. Click on 'local intranet'.
Click on sites. Make sure 'detect local intranet' and all it's sub checkboxes are unchecked. Go into 'advanced' and make sure your webpage's domain is not listed. Close this window.
Now, click on 'Trusted Sites' and then 'Sites'. Make sure to remove your site's domain if it's listed.
All sites which are not 'Intranet' or a 'Trusted Site' default to public internet settings, which is the same as what your users will see (unless you're writing a business application which runs for internal network users, I suppose). This should fix this pop up, and allow +1 and Facebook like plugins to function correctly.

Resources