{"id":19961964,"url":"https://github.com/tw1ddle/samcodes-notifications","last_synced_at":"2026-01-29T18:40:11.213Z","repository":{"id":150404051,"uuid":"66295754","full_name":"Tw1ddle/samcodes-notifications","owner":"Tw1ddle","description":":speech_balloon: Local device notification support for OpenFL Android and iOS targets","archived":false,"fork":false,"pushed_at":"2021-12-17T22:13:29.000Z","size":2270,"stargazers_count":23,"open_issues_count":1,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-12T07:46:37.863Z","etag":null,"topics":["haxe","haxe-bindings","haxe-library","haxelib","ios-notifications","local-notifications","notification","notification-android","notifications"],"latest_commit_sha":null,"homepage":"https://samcodes.co.uk/code/","language":"Haxe","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/Tw1ddle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-22T17:59:30.000Z","updated_at":"2023-04-06T11:12:37.000Z","dependencies_parsed_at":"2023-04-25T16:20:10.266Z","dependency_job_id":null,"html_url":"https://github.com/Tw1ddle/samcodes-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/Tw1ddle%2Fsamcodes-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tw1ddle%2Fsamcodes-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tw1ddle%2Fsamcodes-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tw1ddle%2Fsamcodes-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tw1ddle","download_url":"https://codeload.github.com/Tw1ddle/samcodes-notifications/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241396744,"owners_count":19956404,"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":["haxe","haxe-bindings","haxe-library","haxelib","ios-notifications","local-notifications","notification","notification-android","notifications"],"created_at":"2024-11-13T02:09:02.457Z","updated_at":"2026-01-29T18:40:11.163Z","avatar_url":"https://github.com/Tw1ddle.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Haxe Local Notifications\n\n[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](https://github.com/Tw1ddle/samcodes-notifications/blob/master/LICENSE)\n\nLocal notifications support for Haxe OpenFL Android and iOS targets. See the demo [here](https://github.com/Tw1ddle/samcodes-notifications-demo).\n\n## Features\n\n* Schedule, manage and cancel local device notifications.\n* Manage application icon notification badge counts.\n* Open application when notification is tapped.\n* Custom notification icons (on Android only).\n\nIf there is something you would like adding let me know. Pull requests welcomed too.\n\n## Install\n\nGet the [haxelib](http://lib.haxe.org/p/samcodes-notifications):\n\n```bash\nhaxelib install samcodes-notifications\n```\n\n## Usage\n\nInclude the haxelib through Project.xml:\n```xml\n\u003chaxelib name=\"samcodes-notifications\" /\u003e\n```\n\n## Known Issues\nDue to a bug you cannot cancel individual notifications on iOS, though they can be cancelled all together. This means that if you schedule notifications using the same slots, any older untriggered notifications will not be overridden on iOS, but will on Android.\n\nDue to the way Android alarm management works, force-stopping an application always cancels scheduled notifications. Notifications cancelled this way will be rescheduled the next time the device is rebooted, or when the app is relaunched.\n\n## Example\n\nSee the [demo app](https://github.com/Tw1ddle/samcodes-notifications-demo) for a complete example.\n\nAndroid notifications with badging. Badging is done using [ShortcutBadger](https://github.com/leolin310148/ShortcutBadger):\n\n![Screenshot of Android notification](https://github.com/Tw1ddle/samcodes-notifications-demo/blob/master/screenshots/notification-android.png?raw=true \"Notification Android\")\n\nAndroid notification with custom notification icons:\n\n![Screenshot of Android notification](https://github.com/Tw1ddle/samcodes-notifications-demo/blob/master/screenshots/notification-android-custom-icons.png?raw=true \"Notification Android\")\n\niOS notifications and badging:\n\n![Screenshot of iOS notification](https://github.com/Tw1ddle/samcodes-notifications-demo/blob/master/screenshots/notification-ios.png?raw=true \"Notification iOS\")\n\n## Notes\nThis haxelib was originally based on the [local notifications](https://github.com/byrobingames/localnotifications) extension for Stencyl by [byrobingames](https://github.com/byrobingames).\nAndroid app icon badging support is provided by [ShortcutBadger](https://github.com/leolin310148/ShortcutBadger) by [Leo Lin](https://github.com/leolin310148), which is licensed under the Apache License, Version 2.0.\n\nUse ```#if (android || ios)``` conditionals around your imports and calls to this library for cross platform projects, as there is no stub/fallback implementation included in the haxelib.\n\nIf you need to rebuild the iOS or simulator ndlls navigate to ```/project``` and run ```rebuild_ndlls.sh```.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftw1ddle%2Fsamcodes-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftw1ddle%2Fsamcodes-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftw1ddle%2Fsamcodes-notifications/lists"}