{"id":13786385,"url":"https://github.com/Agasper/unity-android-notifications","last_synced_at":"2025-05-11T22:31:03.199Z","repository":{"id":28508991,"uuid":"32025525","full_name":"Agasper/unity-android-notifications","owner":"Agasper","description":"Unity3D Plugin for Android local notifications with example project","archived":false,"fork":false,"pushed_at":"2019-09-30T15:42:04.000Z","size":5101,"stargazers_count":556,"open_issues_count":27,"forks_count":184,"subscribers_count":68,"default_branch":"master","last_synced_at":"2024-11-17T22:36:18.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Agasper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-11T15:33:09.000Z","updated_at":"2024-11-17T14:45:57.000Z","dependencies_parsed_at":"2022-09-03T14:42:43.976Z","dependency_job_id":null,"html_url":"https://github.com/Agasper/unity-android-notifications","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agasper%2Funity-android-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agasper%2Funity-android-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agasper%2Funity-android-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agasper%2Funity-android-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Agasper","download_url":"https://codeload.github.com/Agasper/unity-android-notifications/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253645113,"owners_count":21941311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T19:01:14.848Z","updated_at":"2025-05-11T22:30:58.182Z","avatar_url":"https://github.com/Agasper.png","language":"Java","readme":"## IMPORTANT\nIf you're using Unity 2018.3+, you can setup notifications throught built-in Unity package\nhttps://docs.unity3d.com/Packages/com.unity.mobile.notifications@1.0/manual/index.html\n\n\nUnity3D Android notification plugin\n=====\nLicense: *MIT*\n\nFeatures:\n* Set delayed notification\n* Set delayed repeatable notification\n* Supports custom icon and large icon\n* Fully supports Unity 4.x, 5.x, 2017.x\n* Fully supports Android 4.0.3 - 8.0\n* Fully supports iOS 8.0 - 11.0\n\n### FAQ\n\n**How to set up small icon ?**\n\nUse the Android Asset Studio notification icons generator (https://romannurik.github.io/AndroidAssetStudio/icons-notification.html) to prepare small icons pack and replace temporary icons named **notify_icon_small.png** with the new ones in *\\UnityProject\\Assets\\Plugins\\Android\\res\\*\n\n**How to set up big icon ?**\n\nSame as small icon, but use launcher icons generator (https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html)\nJust put the result into drawable directories *\\UnityProject\\Assets\\Plugins\\Android\\res\\* with name *notify_icon_big.png*. And in the SendNotification method set bigIcon to **\"notify_icon_big\"**.\n\nIf you want to use app icon just set bigIcon = **\"app_icon\"**.\n\n**How to use a custom sound ?**\n\nFor Android, place an .mp3 or .ogg sound file under Assets/Plugins/Android/res/raw in your Unity project. For iOS, place a .wav, .caf or .aiff sound under Assets/StreamingAssets. Make sure your Unity script that creates the notification sets the `sound` parameter to `true` and the `soundName` parameter to the name of your sound file, without an extension.\n\n**How to handle notification actions ?**\n\nWhen you create your Action, pass in a component (Like NotificationTest) that's attached to a game object that's guaranteed to be on your stage when your app starts. Also make sure that component has a method named \"OnAction\", or customize the name of the `HandlerMethod` when you create your Action. Whatever the name, the method must accept a single string parameter, which is the identifier of the action that was chosen.\n\nOn iOS, if you have more than one kind of notification with actions, make sure you use a different `channel` value for each kind.\n\n**How to create repeating notifications on iOS ?**\n\niOS only supports repeat intervals of a minute, hour, day, 2-5 days (for 'weekday'), week, month, quarter or year. Make sure your `timeout` is the correct number of milliseconds for one of those values, like `60 * 1000` for a minute.\n\n**How to recompile Android plugin ?**\n\nThere is special gradle task called **exportJar**, just run it and grab plugin's jar in app/release/notification.jar\n\n**How to get rid of obsolete warnings like \"*OBSOLETE - Providing Android resources in Assets/Plugins/Android/res is deprecated, please move your resources to an Android Library. See \"Building Plugins for Android\" section of the Manual.*\" ?**\n\nYou can avoid this by recompiling plugin with icons (and optionally sounds) inside.\n\n### Screenshot\n![Screenshot](https://github.com/Agasper/unity-android-notifications/blob/master/screenshot.png?raw=true \"Screenshot\")\n","funding_links":[],"categories":["Open Source Packages","Open Source Repositories","iOS / Android"],"sub_categories":["Plugins"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAgasper%2Funity-android-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAgasper%2Funity-android-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAgasper%2Funity-android-notifications/lists"}