{"id":31040290,"url":"https://github.com/devyatsu/ios_local_notification","last_synced_at":"2025-09-14T08:17:08.708Z","repository":{"id":313366362,"uuid":"1051152515","full_name":"DevYatsu/ios_local_notification","owner":"DevYatsu","description":"Send local notifications on IOS from Rust !","archived":false,"fork":false,"pushed_at":"2025-09-05T16:01:49.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-05T16:36:52.581Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/DevYatsu.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-05T14:20:18.000Z","updated_at":"2025-09-05T16:01:53.000Z","dependencies_parsed_at":"2025-09-05T16:51:56.029Z","dependency_job_id":null,"html_url":"https://github.com/DevYatsu/ios_local_notification","commit_stats":null,"previous_names":["devyatsu/ios_local_notification"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/DevYatsu/ios_local_notification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevYatsu%2Fios_local_notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevYatsu%2Fios_local_notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevYatsu%2Fios_local_notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevYatsu%2Fios_local_notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevYatsu","download_url":"https://codeload.github.com/DevYatsu/ios_local_notification/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevYatsu%2Fios_local_notification/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275076727,"owners_count":25401349,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-09-14T08:17:07.255Z","updated_at":"2025-09-14T08:17:08.683Z","avatar_url":"https://github.com/DevYatsu.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ios_local_notification\n\n[![Crates.io](https://img.shields.io/crates/v/ios_local_notification.svg)](https://crates.io/crates/ios_local_notification)\n[![Docs.rs](https://docs.rs/ios_local_notification/badge.svg)](https://docs.rs/ios_local_notification)\n[![License](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue.svg)](#license)\n\nSend **local notifications on iOS** directly from Rust, powered by [swift-rs](https://crates.io/crates/swift-rs).\n\n⚠️ **Platform support**: This crate works **only on iOS**.  \nAndroid or other platforms are **not supported**.\n\n\u003e NOTE: notifications do not work in the IOS Simulator\n\n## ✨ Features\n\n- Request notification permissions (default or with fine-grained options).\n- Schedule one-time, repeating, or image-based notifications.\n- Clear pending or delivered notifications.\n- Remove notifications by identifier.\n- Retrieve lists of pending or delivered notifications.\n\n## 📦 Installation\n\n`cargo add ios_local_notification`\n\n## 🚀 Usage\n\n```rust\nuse ios_local_notification as notif;\n\nfn main() {\n    // Request permission with default options (all perms)\n    notif::request_permission_default();\n\n    // Or request custom permissions\n    notif::request_permission(\n        notif::permission::ALERT | notif::permission::SOUND,\n    );\n\n    // Schedule a notification after 5 seconds\n    notif::schedule(\"welcome\", \"Hello!\", \"This is your first notification 🚀\", 5);\n\n    // Schedule a repeating notification\n    notif::schedule_repeat(\"ping\", \"Reminder\", \"This repeats every 10s\", 10);\n\n    // Schedule with an image attachment\n    notif::schedule_image(\"img1\", \"Picture!\", \"With an image\", \"example.png\", 5);\n\n    // Query notifications\n    let pending = notif::pending_notifications();\n    let delivered = notif::delivered_notifications();\n    println!(\"Pending: {:?}\", pending);\n    println!(\"Delivered: {:?}\", delivered);\n\n    // Remove a specific notification\n    notif::remove_by_id(\"welcome\");\n\n    // Clear all notifications\n    notif::clear_all_pending();\n    notif::clear_all_delivered();\n}\n```\n\n## 🔑 Permissions\n\nYou can request granular permissions using bitflags from `permission`:\n```rust\nuse ios_local_notification::permission;\n\nnotif::request_permission(permission::ALERT | permission::SOUND);\n```\n\nAvailable flags:\n+ ALERT → Show banners and alerts\n+ SOUND → Play notification sounds\n+ BADGE → Set app badge number\n+ CARPLAY → Show notifications in CarPlay\n+ CRITICAL_ALERT → Bypass Do Not Disturb\n+ PROVISIONAL → Deliver quietly without user prompt\n\n## 📚 Documentation\n\n👉 Read the full API docs on [docs.rs](https://docs.rs/ios_local_notification)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevyatsu%2Fios_local_notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevyatsu%2Fios_local_notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevyatsu%2Fios_local_notification/lists"}