Difference between pager and notifications - wear-os

I am not really understanding what's the difference between using a notification to build a ui where you can perform an action (click on button or display a card) and using the GridViewPager to do that.
I am creating an app where you can perform actions with a button (following the spec of google, on action/button per page). I am using the GridViewPager to do so. But looking at the samples that google provides and looking at the different wear apps that I could find, it looks like a lot of the applications have the same design : buttons with a blue background circle, provided by the Notification class.
In which case should I use the GridViewPager or the notifications?

Related

Navigation Options for Teams Bot Messaging Extensions Search similar to the new built in Stickers App?

Search-based messaging extensions are limited to the UI experience they can provide. One can create multiple search lists in the same extension popup using navigation options horizontally against the top of the display. On the other hand task module based messaging extensions can work with embedded web controls and have full control of the UI.
The new (meaning currently shipping) Stickers app in the Teams client (ability to search for and inject stickers in a conversation) seems to have navigation capabilities not documented? It appears to be a search-based messaging extension due to how it appears in the UI (i.e it is not task module based, as it is not a modal window that appears inside the chat window)
The code available at https://github.com/OfficeDev/microsoft-teams-stickers-app is for the older app and does not implement the current shipping stickers apps UX.
Any pointers on how to get the same left hand side navigation tab experience?
Currently, this feature is not available publicly.

Nativescript + Vuejs - Show dialog while app is in background

I am developing an app very similar to Uber in Nativescript + Vuejs.
There is a moment in the flow of the application, where a driver, having accepted a trip, runs the device's default satnav application (eg Google Map, Waze, etc.) to perform GPS navigation. The point is that while the driver is navigating -with the maps application in the foreground- there is a use case where he can receive an offer to take another trip (as the current trip is soon to end), which he has to confirm or reject/dismiss. Is there a way to do one of the following scenarios:
Show a dialog that appears above the map application showing trip details and two CTA buttons? Like a dark overlay maybe?
Return my application to foreground to show the dialog (leaving the maps application in the background). Important detail is that the map application is opened programmatically by my application.
Please remember that I am using nativescript and not Java/Obj-C.
Thank you!

How do you make macOS notifications stay open and immediately show action buttons?

When creating macOS notifications based on UNNotificationRequest and UNNotificationCategory, it is possible to make notifications that appear briefly and with an action button that is invisible until you hover the notification.
However, I have seen many notifications that stay open and with an action button immediately visible (ie, without having to hover the notification to see the button) - for instance the system update available notification and the MS Office Update notifications. I have not been able to tweak the notification objects to make this possible (hoped that the .destructive option would make a difference).
Is it a different kind of notifications? Or is it possible to tweak the UNNotificationRequest based ones? Or is it not possible at all for "regular" (non-system) applications?
Indeed the notification style "Alerts" as suggested by Ken Thomases is what I was looking for. It is supposedly possible to set this as default in your app's Info.plist through the key NSUserNotificationAlertStyle (apple docs):
NSUserNotificationAlertStyle (String - macOS) specifies the
notification style the app should use. The default value, banner, is
recommended; most apps should not need to use the alert style.
However, this does not seem to work as of 2020 - and indeed there are several reports about this not working online.
Also, several posts online that this is not supposed to be possible to do from within the app in the first place. So I give up and wonder why that Microsoft Office Updater is able to present using alert style - I am 100% certain I have never changed its presentation style in Notification settings.

How to implement Search members functionality (Similar to Praise App) in Adaptive Card invoked via MS Team's Message Extension feature

I am working on MS-Team App which has features similar to Praise(Default app). This app will have "Message Extension" capability which will enable user to invoke it from bar/compose section and will show a wizard. The wizard is implemented through task/fetch-continue-submit workflow.
My question is that in Praise app, I can see a functionality of searching users and then adding it to a list(See attached image). I think that is built inside Adaptive Card but I don't see any such control/event in adaptive card to implement same thing. So how they have implemented it or there is something I am missing?
I don't think you can do this with adaptive cards and will need to make your own custom UI to display via a task module response.
Over at the adaptive cards feature portal, you can vote for this as a feature to add: Dynamic searchable select menu (like select2)
(I also would very much like to do this in an adaptive card from a messaging extension, so I'll be interested to hear if anyone else thinks there's a way to do it.)

Docking wear app to watch face

Apologies for an 'open' question, but can anyone provider pointers on how to 'dock' my app to the Android Wear watch face?
Essentially, I want users of the application to be able to swipe left to right (or vice-versa) from the edge of the screen to open the application, compared to having to scroll the list of applications after tapping the watch face.
I've seen this implemented in another wear app, but don't know the right terminology to produce meaningful results in Google. Is it a wallpaper service, specific view type, touch listerner service etc?
Many thanks.
You can't receive touch events inside the WatchFaceService, touch delivery is disabled.
I can't say for sure how the app you saw implemented the desired behavior, but it probably did by inserting views directly into the WindowManager from a Service.
Checkout this youtube video: https://www.youtube.com/watch?v=S3vHjxonOeg
I don't know how well the Standout library does its job, but it should give you enough examples to figure out yourself, how to add views to the WindowManager.

Resources