Pebble Custom Phone Call Notification - pebble-watch

Is it possible to override the default incoming call screen with a custom screen on the pebble watch?
Im guessing I could capture the interruption as described here - http://developer.getpebble.com/guides/pebble-apps/app-events/app-interruptions
Is this sort of customisation possible?

The screen that shows an incoming call is a modal window shown by the system and cannot be overridden from a Pebble app running on Pebble.
There are however two things you can do on the phone:
From a mobile app on the phone, you can push a notification that will appear on top of the "phone" system UI.
(Android only) You can suggest to the user that (s)he disables the "Call Notification" in the Pebble app and then you will have control of the screen during calls (as suggested by #Chris in the comments. thanks)

Related

Android overlay window notification in xamarin form

how to implement the android overlay window notification with some actions button to close the overlay window in xamarin android.
Push notifications will come from FCM but instead of showing android regular notifications I wanted to show the overlay notification message with my custom view.
Firebase Cloud Messaging service for push notifications doesn’t provide an option to add action buttons to the notification layouts. So in order to add the action button to notifications, the only way we have now is to create the notification in native and integrate it with Flutter.
For more, you can check:
https://medium.com/#info_67212/firebase-push-notification-with-action-button-in-flutter-a841da348097
https://stackoverflow.com/a/57917344/10308336

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.

Hide the soft keyboard in Facebook Messenger Bot

Hi I'm writing a Facebook Messenger bot that has a few nice looking card actions - that end up taking up a large portion of the chat window. The problem is that the soft keyboard on phones such as iPhone and Android still displays, constraining the visible area of the chat to an even smaller window, obscuring the card.
Is there a way I can send some sort of specific JSON down in my bot messages to indicate to FB Messenger that the keyboard should be hidden until the user clicks back into the message entry area?
Thanks.
One option could be is using the Persist Menu feature and set the composer_input_disabled property to true.
From the docs:
Disables the Messenger composer field if set to true. This means your
bot can only be interacted with via the persistent menu, postbacks,
buttons, and webviews.
Some useful links:
Microsoft Bot Framework .NET - Add a persistent menu to your Facebook Messenger chatbot
Adding Menu and Buttons to your messenger bot
Add Persistent Menu and Buttons to your messenger bot
As Ezequiel pointed out. You can use the persistent menu feature for Facebook Messenger. If you are using the .NET SDK check out the sample I created:
https://github.com/FranciscoPonceGomez/Persistent-Menu-Facebook

Can I set the default behavior for my app to not show notifications in notification center?

I want to take advantage of NSUserNotification in Mac OS 10.8 Mountain Lion to display a nice notification to the user of my app, but I don't want to have this particular notification stored in the Notification Center on the upper right of the ML desktop. I know the user can go into System Preferences and change the notification behavior for my app to not show it in Notification Center, but is there a way to set that by default, or to clear all notifications out of the Notification Center?
My notification code looks like this:
NSUserNotificationCenter *nc = [NSUserNotificationCenter defaultUserNotificationCenter];
notification.informativeText=#"text";
notification.subtitle=[";
[nc deliverNotification:notification];
Thanks!
If you're looking for your application to achieve the equivalent of going into NotificationCenter and setting your alert style to 'None', there's a info.plist setting that's supposed to do this. It's called
NSUserNotificationAlertStyle
The documentation isn't very clear, but I believe the valid values are: none, banners, and alerts
http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW1

Resources