badge

change Badge and push notification in iPhone SDK

送分小仙女□ 提交于 2020-01-13 11:28:26
问题 I tried the push notification tutorial . It's working fine but problem is badge. When I click on the view, app is appear and the close it. it still red badge in app icon. How to remove it ? Another question is when I click the view, it will appear home screen. I want to show other view when coming from push notification. 回答1: This will reset the application badge number. If you set that value to zero, it will hide the badge. [UIApplication sharedApplication].applicationIconBadgeNumber =

Gitlab CI using Badges for each job

若如初见. 提交于 2020-01-11 15:39:23
问题 Let's say I have configured multiple jobs for a project like following: build_win32: script: ... build_ios: script: ... unit_tests: script: ... server_tests: script: ... client_tests: script: ... What I want to achieve is to configure badges per each job under README.md so that I can have immediate feedback of specifically which part went wrong. There is a Gitlab Documentation on setting badges but this has a limitation that it shows how to configure badges for build and coverage status only.

Can the merit gem recalculate reputation and re-evaluate badges and ranks?

故事扮演 提交于 2020-01-11 05:44:09
问题 I would like to add a system of points, ranks and badges in my rails app. The merit gem looks cool, but I want to make sure how it works before using it. The way you define badges # app/models/merit/badge_rules.rb grant_on 'comments#vote', :badge => 'relevant-commenter', :to => :user do |comment| comment.votes.count == 5 end and points # app/models/merit/point_rules.rb score 10, :to => :post_creator, :on => 'comments#create' do |comment| comment.title.present? end suggest that the action is

How to set the badge position in tabs

百般思念 提交于 2020-01-03 05:12:07
问题 I am new to badge's concept. In my application i want to show the badges on the tabs. For that i used the android-viewbadger.jar file. It's working fine but position property is not effected. How to set the position. If you need more info please let me know. TabWidget tabs = (TabWidget) findViewById(android.R.id.tabs); DH_Constant.badgeView = new BadgeView(this, tabs, 2); // it's working fine badge1.setBadgePosition(BadgeView.POSITION_CENTER); // But I Supposed to set it as position to top

How to show notification count on app icon like Facebook?

非 Y 不嫁゛ 提交于 2019-12-31 19:28:07
问题 I want to show unread notification count on my app icon when app is not opened. this post seems to be close but it is 3 years old . Has there been any change on this or I should go with solutions provided in the accepted answer? 回答1: Unfortunately you cant achieve this for all android devices. Certain manufacturers (e.g. Samsung or Sony) have included this functionality into their customised Android launchers. Also some 3rd-party launchers (e.g. Nova Launcher) have included an API to

How to change UITabBarItem Badge position?

时光总嘲笑我的痴心妄想 提交于 2019-12-31 02:10:09
问题 This is how my Tabbar is looking right now. How do I move that badge so that it overlaps the top right of the bell icon? Any help is appreciated. 回答1: try this: func repositionBadge(tabIndex: Int){ for badgeView in self.tabBarController!.tabBar.subviews[tabIndex].subviews { if NSStringFromClass(badgeView.classForCoder) == "_UIBadgeView" { badgeView.layer.transform = CATransform3DIdentity badgeView.layer.transform = CATransform3DMakeTranslation(-17.0, 1.0, 1.0) } } } pay attention, tabIndex

Badge Count is not increasing for push notification.always badge count remains 1?

会有一股神秘感。 提交于 2019-12-29 08:25:32
问题 My app badge count in not increasing when app is in background for push notifications.Count increase by 1 only for the first push notification and always remains badge count as 1, if i get more then 1 notification also badge count remaing 1 only. Below is my code - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { NSString *message = nil; id alert = [userInfo objectForKey:@"aps"]; if ([alert isKindOfClass:[NSString class]]) { message =

Create an Image Trackback for an outside web publisher to link to my site

我的未来我决定 提交于 2019-12-25 07:27:36
问题 We're trying to create a trackback system where an outside web publisher can put some html on a page on their website that links back to a specific product page on our site. Let's call it a 'badge' for purposes of this question. Once they've inserted the badge, we want to identify this, then grab the < h1 > and first < p > as a teaser to comprise a link from our site back to theirs and write all this stuff to our database. Then, our users can see the title and first bit of their page, then

Update UITabBarItem badgeValue with More view

╄→尐↘猪︶ㄣ 提交于 2019-12-24 10:40:46
问题 How can I update the badgeValue of a TabBarItem when I do not exactly know the index of it? It might be in the "More" tab or on the main Tabbar depending on what the user sets.. Also if the tabbaritem is inside "More" I can only add a badgeValue to the More item right? How can I add the badge on the item itself in the tableview which is created automatically by the SDK? 回答1: Yes you can, and you don't have to know index: @implementation SomeController ... -(void)increaseBadgeValue{ NSString

When an app is in background, onMessageReceived method is not firing

馋奶兔 提交于 2019-12-24 10:12:20
问题 Actually i need to show badge in app icon but i don't know how to get badge and why onMessageReceived not call when app is in background or app is not running. public class Custom_FirebaseMessagingService extends FirebaseMessagingService { private static final String TAG = "FirebaseMsgService"; String activityName; @Override public void onMessageReceived(RemoteMessage remoteMessage) { if (remoteMessage == null) return; if (remoteMessage.getNotification() != null) { Log.i(TAG, "Notification