Code Monkey home page Code Monkey logo

shortcutbadger's Introduction

ShortcutBadger

ShortcutBadger

original version NuGet Badge Build

Port of ShortcutBadger for Xamarin.Android


The ShortcutBadger makes your Android App show the count of unread messages as a badge on your App shortcut!

Usage

NuGet

Install-Package Xamarin.ShortcutBadger

Add the codes below:

int badgeCount = 1;
ShortcutBadger.ApplyCount(context, badgeCount);

If you want to remove the badge:

ShortcutBadger.RemoveCount(context);

or

ShortcutBadger.ApplyCount(context, 0);

Supported launchers:

Sony


Samsung


LG


HTC


Xiaomi



ASUS


ADW


APEX


NOVA


Huawei


(Not Fully Support)

(1.1.7+)

ZUK



(1.1.10+)

OPPO


(Not Fully Support)

(1.1.10+)

EverythingMe


ZTE



(1.1.17+)

KISS



(1.1.18+)

LaunchTime


Yandex Launcher



(1.1.23+)
  • Nova launcher with TeslaUnread, Apex launcher, ADW Launcher provided by notz
  • Solid launcher provided by MajeurAndroid
  • KISS Launcher provided by alexander255

About Xiaomi devices

Xiaomi devices require extra setup with notifications, please read wiki.

IsBadgeWorking?

A tool for displaying your device, launcher & android version and testing whether ShortcutBadger works or not may be downloaded from

DEVELOP BY

Leo Lin - [email protected]

ABOUT Google Play Developer Term Violations

If you receive a message from Google containing something like this:

REASON FOR WARNING: Violation of section 4.4 of the Developer Distribution Agreement.

please use version 1.1.0+!

CHANGE LOG

1.1.22:

1.1.21:

  • Using binding of native library
  • Change namespace from Xamarin.ShortcutBadger to XamarinShortcutBadger

1.1.19:

  • Fix multiple home package resolve issue.

1.1.18:

  • Add Kill Launcher Support

1.1.17:

  • Add ZTE Support

1.1.16:

  • Improve Sony Launcher support.

LICENSE

    Copyright 2014-2024 Leo Lin, Yauheni Pakala

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

shortcutbadger's People

Contributors

wcoder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

shortcutbadger's Issues

Namespace that starts with Xamarin. causes build error

With an update of Xamarin the namespace that starts with Xamarin. causes build errors in NovaHomeBadger:

_context.ContentResolver.Insert(Android.Net.Uri.Parse(ContentUri), contentValues);

Android.Net.Uri cannot be found anymore because it searches in Xamarin.Android.Net (which is new in Xamarin 6.1).

Change or remove Xamarin. fixes the issue.

See: https://developer.xamarin.com/releases/android/xamarin.android_6/xamarin.android_6.1/
@ Breaking changes:

Possible compilation errors when projects use a Xamarin. namespace, because of conflict with the new Xamarin.Android.Net namespace.

Add VSTS

  • PR & CI integration
  • definition for build
  • definition for release
  • status badge

badge is not working in HTC

actually, I tried this solution and it is properly running in the phone but it's not showing the numeric value on the app icon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.