Is it possible to customize the buttons of a dynamic long nook notification from the watch-side?. The official documentation shows an example on iOS side and making use of UIApplication which I believe is not a availavable on the watch side. I can't found any data regarding this matter on the web nor in the official documentation and I'm not sure if this is possible.
Thanks in advance!
Is it possible to customize the buttons of a dynamic long nook notification from the watch-side?
No, it is not possible to change the look of the buttons of a dynamic long look notification.
You can change what buttons appear (0 to 4 buttons are possible) by setting the notification category in the companion phone app. Notification category cannot be set in the watch app.
See the WatchKit Framework Reference for more details.
Related
The NowPlayingView is a structure. We can use it like:
NowPlayingView()
According to Apple's documentation
Don’t add any other elements to the view.
We, developer can not add anything to the view.
But the Apple Music and Podcast's NowPlayingView are different.
Apple Music NowPlayingView:
Podcast NowPlayingView:
So I want to know if there any chance we can customize the NowPlayingView.
According to Apple's Engineer, developers can not change anything on NowPlayingView.
Additionally, the bottom-right menu button is neither not available to developers.
Reference:
Can not modify NowPlayingView. Can not use menu button
I have implemented iOS rich notifications in my app based on Local and Remote Notification Programming Guide.
I watched WWDC Introduction to Notifications, Advanced Notifications, and Best Practices, and read UNNotificationContentExtension. All of these show that I can implement Notification Content extension to customize notification presentation. But to me it seems that they all assume that we can customize only the expanded view (the view that opens up when we 3D press the short preview).
Now I know that I can customize the presentation of the short preview in a very restricted way - using title/body I can decide if I want a bold or normal font; by using Notification Service extension I can add a media preview. However, what I need is to be able to build the UI of this short preview myself - add custom UIImageView, etc. Right now it seems that this is not possible, but I wasn't able to find any explicit information that would confirm it.
So my question is: Can we customize the short preview of a notification? If not, is there any explicit statement in official docs that explain this? If yes, can you refer me to some docs/tutorials on how to do it?
I just stumbled upon the following line in the Customizing the Appearance of Notifications article in the official documentation:
The system provides the interface for the abbreviated banner, but you can customize the full interface using a notification content app extension.
This confirms that currently there is no way of customizing the short preview ("abbreviated banner" in the docs).
I think (I'm not 100% sure) that you can only display an Attachment Image in the Notification banner, because you don't have Storyboad or UI file for this. It is the default Notification banner design.
You can follow this great guide (links below), it helps me understand Notification Content Extension and Notification Service Extension and all the logic behind and how it really works.
You can try to make some adjustments to the project, trying with anything else than ImageView, but as far as I know, the attachment is by default positioned at the right corner, as a miniature.
I am interested if you find additional informations.
Here is the great links that helped me build my Notification Feature in my App.
Sources:
Rich Notification Guide
Notification with Attachment
PS: I am also sad and disapointed that the expended view only appears with 3D Touch (People don't use it, 3D Touch is a failure to me).
I'm working with the new interactive notifications in iOS 8; it fails to get the action buttons (in "banner mode") to show up by default. As it is now I have to slide down on top of the notification to see them.
Is this the default behavior, or is my code rotten?
For the images below I am using XCode 6.1.1 + iOS 8.1 (Simulator)
What I get:
What I want:
This is the default behaviour and no problem with your code.
For more details refer to the below tutorial, result is same as yours.
http://www.thinkandbuild.it/interactive-notifications-with-notification-actions/
Its a default behaviour. Don't worry about this. Apple says:
When a notification is delivered, the system displays a button for each custom action associated with the notification. Tapping a button launches your app (either in the foreground or background) and gives you a chance to perform the indicated action. You use this class to specify the text that is displayed in the button and the information your app needs to perform the corresponding action.
The options are not default behaviour. That can be done via - UIUserNotificationCategory
Refer this WWDC video - https://developer.apple.com/videos/wwdc/2014/?include=713
It's pretty straight forward and easy to implement. Let me know if you face any issues.
Everything is behaving normally. All that needs to be done is to drag down the bottom horizontal bar in the banner and the action buttons would be visible in the banner.
PS - As of iOS8. Once iOS9 comes in in a few more days, no guarantees if this is how it will still be.
I have a special case in my iphone app where I have to display a badge on a tappable UI element and not in the tab bar ... is that acceptable ? I read the iOS guidelines and it says that a tab bar can display a badge (red oval) but they didn't mention any point stating that it should be placed specifically there (tab bar)
And if that is a bad UX practice, should I design a custom icon that looks like the badge and use it in my specific case ?
Thanks in advance.
Best Regards,
If they say a badge can be shown in the tabBar this does not mean that it can't be shown somewhere else.
This is not uncommon and definitely not a bad practice. Badges are not used only for navitagation events (in tabbar).
If something is not forbidden by the guidelines, then it's permitted.
However, be sure the application still follows basic iOS design and you don't implement it in some non-standard way if stardard solution would be also possible.
For example, look at the iOS Mail application. It's a split view where every mail box in the main controller has a number with unread messages. Well, that's basically a badge.
You can't do that, I recommend you to use this customBadges: http://www.spaulus.com/2011/04/custombadge-2-0-retina-ready-scalable-light-reflex/?lang=en
When I install my app then go to the notification section of settings, the Alert Style is set to Banner.
Is this an iOS wide setting and the same for all apps, or is there some setting in info.plist for example that can enable the alerts style to be of type Alert rather than of type Banner upon installation?
Sorry but the answer is no. You have just a little influence on the presentation of the notification. Setting the presentation style is then up to the user and you can't modify it at any point.
see:
related stack overflow question
I've yet to see an application display a custom push notification beyond the blue banner. It would lead me to believe that it is currently not configurable.