I build a glass app using mirror api. Now I want to submit in google that any one can download my app from glassware.
How can I do it?
It sounds like you'd like to have your Glassware listed on MyGlass. Follow these steps:
Ensure that your Glassware adheres to all of the guidelines provided in the official documentation. Google provides a checklist that you can use.
Prepare icons and assets that will appear on Glass and MyGlass. There's a list of the icons to create here.
Fill out the distribution form to initiate the review process.
If you'd like to use any new voice commands from the "ok glass" menu, request these in a separate form.
Related
I have created a Youtube API application to enable access to Youtube API for Integromat. All my Youtube API application does it gives access to my Youtube channel videos for Integromat. Integromat grabs the links to videos and uploads the links to my Airtable. So the only user for the Youtube API is going to be myself and my own Integromat workflow.
The Youtube API app is in development. I want to verify the app to get rid of the 1-hour deactivation of the authorization (Integromat connection to Youtube API breaks after 1 hour).
To get verified, I looked the steps here https://support.google.com/cloud/answer/7454865?hl=en. The first step it tells me to do is "Update the OAuth consent screen details" and I go to that screen and shows the publishing status. Do I click to "publish to production"?
When I click that, it tells me:
Your app will be available to any user with a Google Account.
Screenshot showing the step to publish my app
That's sounds scary. What does it mean?
I do not need (nor want) have other users logging to my Youtube API. I am the only user and Integromat is the only app that will access the Youtube API.
I am novice in this and don't have much idea about programming so I don't even know what questions I should be asking here.
Thanks.
Here are more details about what I am trying to do in Integromat:
Youtube API Integromat testing app - connection getting disabled
It means that you will be able to share your app via that link with anyone you please. The whole point of an API is that it's available publicly, at least on a technical level. Whether you're actively soliciting users is an entirely other matter, naturally.
I have GDK app and companion app(which runs on mobile device) both paired via Bluetooth. Now I have to send notification to glass app(want to add new timeline item) from companion app. Is it possible? If so please share idea and some sample code.
Note: I want to implemet this feature without using Mirror API.
Thanks.
Currently, the only way to add an item to the timeline is via the Mirror API.
Since you canĀ“t do all the nice looking stuff with the GDK at this point (html, images and so on) on cards. I was wondering if there is a possibility to ask a Mirror API from within my application (created with GDK) to send me some data?
Example:
I see the flow like this:
The GDK app is started with "ok glass, search app"
You talk what you want to search for.
The app takes the word and asks the Mirror API for a result.
The Mirror API sends the result to the glass timeline.
Regards
Joakim
Absolutely. If it makes sense for your app to either communicate with an external service that sends data back via the Mirror API, or calls the Mirror API itself, then you can certainly do so. (Although you begin getting dangerously close to just doing it all in Mirror at that point.)
The biggest challenge you'll face is having your app go through the OAuth dance to get an auth token to use.
It sounds like the core of your issues is that you want a richer way to display content in the static part of the timeline to the right of the clock. You have a couple of options.
GDK
If you'd like to stay pure GDK, you can create your own view, and flatten it into a bitmap. The steps to complete this are the same as for other Android devices.
Mirror API
You could also use the Mirror API to insert HTML static cards using timeline's insert method, but to do this you will need to communicate some authentication information to your GDK Glassware. For example, if you want to insert into the Mirror API directly from Glass, you would need a way to provide an access and refresh token to your GDK Glassware.
There is no graceful way to do this with the released APIs, but I've seen some people accomplish this using the OAuth 2.0 flow for devices or scannable QR codes.
If you go down this route, be prepared to update your implementation. Google has announced improved support for sending authentication information to GDK Glassware. Once it's available you will want to switch over to it.
Mirror API allow you to communicate back to it from Glass through the contact that you can create using Mirror API.
How it works -
you create a contact,
then when you need to do wit GDK on step 2 of your flow is share a
note with your contact
the words get transcribed and delivered to you Mirror notification
listener.
the mirror notification listener on server get the text of what kind
of app you would like to search, perform the search and deliver the
result by simply publishing on your timeline.
That's the best that i can see right now.
Here is a link how to declare voice menu commands (now only two are available, but you can propose more)
https://developers.google.com/glass/develop/mirror/contacts#declaring_voice_menu_commands
P.S. To go through oauth2 challenge - download sample mirror app
https://developers.google.com/glass/samples/mirror edit you
oauth2.properties file with creds you will get on your google development web console (you will need to create the app with google and request to enable Mirror API)
then run mvn clean install
then run
mvn jetty:jetty
I would like to create an app that will show image captured from Google glass.
After I take a picture on glass I want do some image filtering on my device and show the image on some activity, after the application will send result Ok\fail back to glass.
Can It possible to create some client\server app with glass,
maybe a service on the phone that will receive the image and run activity that will send result back to glass?
code samples will be helpful.
You have noted that using the Google Mirror API to create your application is not an option for you. (There is even a sample application "add a cat to that" that will do this (here). That sample application receives a picture, adds a cat to the picture on the server side, and returns the adjusted picture to Google Glass.)
Currently direct communication between Glass and your phone (Android or IPhone) is not supported (see requested enhancement issue 272 here).
That leaves you with one design pattern available - communication through the cloud. You would need to use the Glass Developers Kit, take the picture and post to a server "in the cloud"; while your Phone app would need to be monitoring server for a new picture (or use server side code to trigger an alert to your phones application).
I'm trying to make a sample app on Google Glass. Currently, I do not have a device.
My question: after I finish creating the app, what is the action needed to see it on the launch page? Do I need to send an API request to add the card to the user's timeline? or I can perform some kind of a normal install, and see it on the main menu then?
Thank you for your help.
There are two types of Glasswares (Glass applications):
GDK Glassware
MirrorApi Glassware
You can only distribute Mirror Api Glassware for now. See my question and answer for it.
If you are trying to distribute a Mirror Api Glassware (after you finished development), you have to fill the submission form.
Your glassware is going to be reviewed by Google. After Google approves, your Glassware is going to be seen at MyGlass site. Then users can go to MyGlass site and register to your Glassware with OAuth flow.
Also see this distribute page.
As far as I've understood by "launch page" you mean MyGlass page (https://glass.google.com/myglass).
If that's the case - Your Mirror-based application will appear on the user's MyGlass page once he/she authorizes it (OAuth will be completed).
Hope this will help.