{"id":20330298,"url":"https://github.com/uralys/godot-android-notifications","last_synced_at":"2025-05-08T01:31:04.771Z","repository":{"id":86779025,"uuid":"461623472","full_name":"uralys/godot-android-notifications","owner":"uralys","description":"Godot 3 android plugin to send notifications","archived":true,"fork":false,"pushed_at":"2024-03-22T18:48:45.000Z","size":63,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T12:18:55.726Z","etag":null,"topics":["android","android-plugin","godot","godot-android","godot-engine","godot-plugin","notifications"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uralys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["chrisdugne"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2022-02-20T21:39:07.000Z","updated_at":"2025-02-19T15:06:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"a1b3e725-143e-4857-81e9-999b05480842","html_url":"https://github.com/uralys/godot-android-notifications","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uralys%2Fgodot-android-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uralys%2Fgodot-android-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uralys%2Fgodot-android-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uralys%2Fgodot-android-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uralys","download_url":"https://codeload.github.com/uralys/godot-android-notifications/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252981469,"owners_count":21835432,"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":["android","android-plugin","godot","godot-android","godot-engine","godot-plugin","notifications"],"created_at":"2024-11-14T20:15:50.127Z","updated_at":"2025-05-08T01:31:04.437Z","avatar_url":"https://github.com/uralys.png","language":"Java","funding_links":["https://github.com/sponsors/chrisdugne"],"categories":[],"sub_categories":[],"readme":"This plugin worked for Godot 3, using the old plugin API and is now archived.\nFor Godot 4 use this one: \u003chttps://github.com/cengiz-pz/godot-android-notification-scheduler-plugin\u003e\n\n# godot-android-notifications\n\nAn Android plugin for Godot 3 to send Android notifications\n\nThis plugin implements \u003chttps://developer.android.com/guide/topics/ui/notifiers/notifications\u003e for Godot Engine.\n\n## Usage \u0026 Docs\n\n## Icon\n\ncreate a `icon_notification.png` within the android resources in your godot project:\n\n```sh\nandroid/build/res/mimap/icon_notification.png\n```\n\n## Compiling\n\nPrerequisites:\n\n- Android SDK (platform version 30)\n- the Godot Android library (`godot-lib.***.release.aar`) for your version of Godot from the [downloads page](https://godotengine.org/download).\n\nSteps to build:\n\n1. Clone this Git repository\n2. Put `godot-lib.***.release.aar` in `./godot-android-notifications/libs/`\n3. Run `./gradlew build` in the cloned repository\n\nIf the build succeeds, you can find the resulting `.aar` files in `./godot-android-notifications/build/outputs/aar/`.\n\nCopy this `.aar` and `GodotAndroidNotifications.gdap` in your godot project, into:\n\n```sh\nandroid/plugins/.\n```\n\nYou should get something like:\n\n```\nandroid/plugins\n├── GodotAndroidNotifications.1.0.0.release.aar\n├── GodotAndroidNotifications.gdap\n```\n\nNow export your Godot project using the [custom build](https://docs.godotengine.org/en/stable/tutorials/export/android_custom_build.html)\n\n## API\n\nYou have [2 functions](https://github.com/uralys/godot-android-notifications/blob/master/godot-android-notifications/src/main/java/org/godotengine/godot/plugin/androidnotifications/Scheduler.java#L111) available on godot side\n\n## schedule\n\n```\n var notifier = Engine.get_singleton('GodotAndroidNotifications')\n \n var notificationId = 'whatever, I use time stuff to get unique ids'\n\n notifier.schedule(\n        'the title',\n        'the message',\n        secsToNextNotification,\n        notificationId\n)\n```\n\n## cancel\n\nYou can store your `notificationId` anywhere, and use it to cancel the scheduling:\n\n```\nnotifier.cancel(notificationId)\n```\n\n\n## Development\n\n- inspiration from: \u003chttps://github.com/DrMoriarty/godot-local-notification/blob/master/android-plugin/\u003e\n- reference plugin implementation : \u003chttps://github.com/godotengine/godot-google-play-billing\u003e\n- docs to create a plugin from godot: \u003chttps://docs.godotengine.org/en/stable/tutorials/platform/android/android_plugin.html?highlight=notifications#introduction\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furalys%2Fgodot-android-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furalys%2Fgodot-android-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furalys%2Fgodot-android-notifications/lists"}