How to disable custom actions buttons on Apple Watch when receiving push notification - ios

I am developing an iOS app with 3D Touch push notifications. The notification has a couple of custom actions defined.
When receiving the notification on an Apple Watch, these same custom actions are displayed. However, since:
I am not yet planning to create a companion Apple Watch app to handle the long-look interface of the notification, and
these custom actions require interaction with the iOS app based on an enhanced preview of the notification when received on an iOS device,
these actions make little sense on the watch.
Is there a way I can disable these actions when receiving a push notification on an Apple Watch?
Thanks in advance!

Related

how to hide close button in iOS notification on apple watch

we're sending critical alerts to the user by remote notification. Users with an apple watch recieve those notifications at their watch display. at the bottom of the notification at the apple watch display, there is a "close" button displayed. If the user hits this close button, the notification seems to be purged by the os and the iphone app has no change to get the notification anymore.
As there is some data transported within the APNS Payload, this data is lost for the app.
We didn't do anything special for apple watch (like a watch app), we only deploy an ios app.
What is the preferred way to
a.) remove the close button in apple watch notification
b.) have the app to be able to access the notification payload if the user hits "close".
Any help appreciated

Pushwoosh iOS SDK, disable alert generated by pushwoosh in Background mode

I want to disable alert generated by pushwoosh manager when i received notification when my app is in background mode. I have tried both Pushwoosh_SHOW_ALERT and Pushwoosh_ALERT_TYPE, it works fine in foreground mode. But i want to show custom message to user when received notifications.
When the app is in background the alert is generated by iOS itself by default.
You might want to deliver the notification silently and present notification yourself. See this article on how to achieve that:
http://docs.pushwoosh.com/docs/deletable-ios-push

How to transfer user from Apple Watch Notification to Apple Watch App?

When a Push Notification is displayed on the Apple Watch, the only possibility to open the Apple Watch App is to tap the App icon in the upper left corner.
Now, as I´m reviewing our tracking data, no user seems to know this.
How can I install another tap area in the Notification View which transfers the user in the Watch App?
The first thing to understand is that notifications aren't specific to either the iPhone or the Apple Watch. They're the same old notifications we've been dealing with for years, and nothing has changed. That means that there's no such thing as an "Apple Watch-specific notification" or an "iPhone-only notification." iOS decides where to route a notification based on its own heuristics. There is no way to programmatically control which device receives an alert.
That said, stk is correct that you will have to add actions to a category that you set for your notification. The Notification Essentials section of the Apple Watch Programming Guide has some sample code.
Because there is no such thing as an iPhone- or Watch-specific notification, you're correct that you will see these actions on both devices. So, you'll have to do something meaningful on both platforms. This makes sense, because iOS decides where to send the notification, so it should be handled appropriately wherever it's sent.

iOS Push Notification open different app

Can IOS push notifications open another app via its URL scheme (ie. SOMEAPP://someUrlScheme)?
I've looked through the documentation but haven't seen any mention of this.
Directly from the notification bar I think it is not possible, but you can handle notification received event show a popup and launch another app on click event of that popup

iOS - notification center features without enabling push notifications?

My app is handling messages among users in active and background modes using a separate queuing and delivery system.
Is there a way I can tie my app into the Settings | Notification Center so that users can pick the alert style, enable or disable the badge app icon, and all those other features, without setting up push notifications?
Probably not. See ``Can I have my app in notification centre by default?´´ for a similar issue.

Resources