How can I change the notification level when pushing a bundle containing multiple cards? - google-mirror-api

A handful of apps such as The New York Times push a bundle containing two or more items to a user's timeline and manage to only play the default "jingle" notification sound once.
The Mirror API currently offers a parameter for notification.level, however the documentation only displays a single available parameter: DEFAULT.
How can I push multiple cards to a user but only play the notification sound once? I'd ideally like to only have the notification sound tied to the bundle cover item.

If you only want the sound on the bundle cover item - just set it for that only. You can leave the notification field empty or null for the cards you don't want to play sound for.

Related

Reading and updating data from outside the widget

Is it possible to first request the data of some widget, and then update the data or add new ones?
Example: Product card widget. There are several of them on the page. I go to the admin panel and by pressing the button the data in all widgets is updated based on those received from other sources (API of a third-party site). In short, the synchronization of data in some widgets based on some data received from another site.
Whatever the manager manually checks, does not waste time changing prices, the availability of balances based on data from a friendly site, from where I get the data.
How can one read widget data on some page via PHP?

Do mobile analytics services (like Firebase or Amplitude) generally let me do time-based analysis?

I work on a camera app, and I'm collecting a stream of analytics events like:
App entered foreground.
The user took a photo.
Let's say I want to find out how long after the app enters foreground the user takes a photo. This requires me to find, for a particular photo event, the most recent foreground event that happened before the photo event, with the same device ID, and subtract the difference in timestamps between them.
Or, let's say I want to find out how many photos a user takes in a typical session, given a stream of events like:
App entered foreground.
User took photo.
User took photo.
App entered background.
This will require me to find, for a given background event, the most recent foreground event that happened before the background event, and then count how many photo events happened between these two events, all for the same device ID.
Are such types of analyses feasible and easy to do with typical analytics services like Firebase Analytics or Amplitude? Or is it easier to log this information myself in my iOS app, say by adding a field to the photo event that tracks how long it has been since the last event.
Which is simpler to do?

GPS tracking in Kinetise application

Anyone here familiar with Kinetise? I try to add to my app some kind of remote tracking functionality, where backend will trigger from active user his GPS position. What first come to my mind was PUSH notifications, but it's rather message notification than event triggering in this tool. In taxi template there is a map with live changing positions, realized by longpooling requests I think. I found that you can add your current position in request params or body and I consider to use this technique to send user location to server, but I think that I would have to add empty lists in each screen, just to send a location. A bit weird but maybe there is any better solution?
#Marek for GPS purposes you have also functions:
GPS TRACKING START
GPS TRACKING STOP
You can add it to buttons from widget "EVENTS" tab.
EVENTS tab
I know it's not triggered by server but can help you meet your requirements.

How to raise the notification level of timeline updates?

Are there options other than DEFAULT for the notification level?timelineItem.setNotification(new NotificationConfig().setLevel("DEFAULT"));
I would like the screen to turn on to show my new/updated card instead of just hearing the sound and having to quickly turn the glass on to catch the notification or have to scroll through to find it.
There are only two notification levels: DEFAULT and NULL.
The Glass team has decided against allowing developers to use the Mirror API to automatically turn on screens. There was a feature request that the team closed. Here is the explanation:
This is something that we've considered, but as it turns out, it's really distracting. We're continuing to experiment with ways to make notifications rich, but bringing the screen on automatically is probably not something that we'll ever provide in the Mirror API.

How do I tackle ordered text widget on multiple pages in cakephp

Hey guys. so I'm not quite sure how to tackle my next big problem in this project.
I want to create an admin interface which allows my client to create a dynamic menu page for the food and drinks. Basically, I want him to be able to enter a short paragraph for the top of the page, and then 2-6 widgets that he can drag and drop onto the page. This menu will then render under owlhouse.com.au/food. I figure it'll be something to do with associations, but I have no idea how to construct a function which attaches dynamic data to the page on the fly.. and keep it in the layout the client wants (2 columns, diff modules for beer, wine, etc.)
HOW ON EARTH DO I GO ABOUT THIS?
thankyou,
~Harley
Dynamic Data
Build a "CRUD" interface that the client can log into. (Think blog entries). Store the content in the database (of course). Then provide a drag & drop interface that allows the client to order them, assign them to pages, or whatever is needed to meet the requirement. When the client clicks update, you simply add/remove IDs to the content for the given page. When the page loads (like a blog page) it loads the content for the given IDs.
Widgets
The same would apply for widgets. I would build an element that provides the basic layout for the widget. Then build it the same way as the content. The client will have CRUD functionality with drag & drop interface to show which widgets are displayed.
Send me a PM if you need to hire someone. ;)

Resources