How to add an android notification which asks for a Yes or No confirmation on an android wear?
To build this into a notification, you would need to create a custom notification. See here for creating custom layouts for notifications - https://developer.android.com/training/wearables/apps/layouts.html#CustomNotifications
There is no predefined Wear activity/layout for this type of yes/no confirmation. You would need to build this yourself - perhaps with a BoxInsetLayout and two ImageButtons for yes and no.
You can find info on the BoxInsetLayout here - https://developer.android.com/training/wearables/ui/layouts.html#same-layout
This will ensure that your layout looks ok on both square and round devices.
If you're looking for a common Wear experience, you'll probably want to use a DelayedConfirmationTimer and a ConfirmationActivity. These are commonly used to give the user time to cancel their input and to provide an indication that a process is complete, respectively. You can find details here https://developer.android.com/training/wearables/ui/confirm.html
Related
While connecting to any Bluetooth device, a yes/no popup appears from windows.
From app, is there any way to programmatically skip this yes/no popup?
Checked few documentation.
After talking with some Bluetooth guys, it seems that you need to use custom pairing in your scenario. This feature enables creating your own user interface to interact with the user as needed.
The sample code you could refer here:https://github.com/microsoft/Windows-universal-samples/blob/main/Samples/DeviceEnumerationAndPairing/cs/Scenario9_CustomPairDevice.xaml.cs
I would like to add a Push Notification to a Xamarin Cross Platform application.
My application has MaterDetailPage on the Portable layer. When a notification comes in, I want it to appear as "Messages (1)" in the menu.
How can I do that?
There is no way to do it in cross platfrom, you'll have to implement some custom renderers, as Google and Apple have different ways to implement that.
A nice component for implementing that is https://components.xamarin.com/view/azure-messaging but rememeber that you'll also have to do some backend work.
Regardless of how you decide to implement push notifications, if you intent to develop for iOS I would recomend reading https://developer.xamarin.com/guides/ios/application_fundamentals/notifications/remote_notifications_in_ios/ as you'll probably have some trouble with the certificates/provisioning.
How to ask for system alert window permission on Android Wear? I am able to achieve the SYSTEM ALERT WINDOW for mobile but on the wearable device same code is not working for me. If any example of SYSTEM ALERT WINDOW for wearable would help me a lot.
This is a duplicate of Requesting permissions on Android wear, but SO won't let me mark it as such because the OP didn't accept my answer there.
The summary is that it's not possible to request this permission on Android Wear 1.x, but it is on Wear 2 (currently in beta and slated for release in early 2017).
In addition to #String's answer, you might want to use requestPermissions() method. Please note, these permissions must be requested in your manifest.
And, as mentioned in Permissions for Services,
only an activity can call the requestPermissions() method, so if the user interacts with your app via a service, for example a watch face, the service must open a background activity before requesting the permission.
You can gain additional insights from the solutions given in this SO post and from the sample code shown in this GitHub post.
I've designed a custom notification for an app I'm working on for Apple Watch. The notifications look good but because of the current technical limitations I don't want to build a launchable app or glance until I have mic and speaker access. Is it possible to display dynamic notifications without having an app icon on the home screen of the watch or is the watch app mandatory to have a dynamic notification at all?
No, you will need to add a dynamic Notification scene in your Watch app.
If you want to read more information about this I'd refer you to this page:
https://developer.apple.com/library/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/CustomzingthePushNotificationInterface.html#//apple_ref/doc/uid/TP40014969-CH6-SW1
I am new to windows phone app dev. I want to know if there is any way to have a notification alive till the user checks it. I found that "toast notification" expires in 10 seconds irrespective of user checks it or not. And there is no way of finding out if a tile notification arrived or not. Is there any workaround? I want to have notifications that are similar to Android notifications which stay till user checks them.
Persistent on-screen notifications on Windows Phone are not possible, by intentional design. It's interesting to see how many users on Android disliked persistent notifications when applications started to interrupt and then disrupt the current foreground application experience.
The design philosophy is that they distract from the user experience and could be easily abused by applications.
The general Microsoft recommendation for the platform would be to use a combination of a notification, Live Tile (reference), and in application UI update.
In Android 4.3, the behavior was changed to highlight applications that were constantly running (interesting reference)
You can use "MessageBox.Show(String)".
Refer below for:
MSDN Doc
Example 1
Example 2