{"id":18086268,"url":"https://github.com/shibayan/azure-functions-appcenterpush-extension","last_synced_at":"2025-08-11T06:20:18.490Z","repository":{"id":142937186,"uuid":"188955556","full_name":"shibayan/azure-functions-appcenterpush-extension","owner":"shibayan","description":"Azure Functions Bindings for App Center Push","archived":false,"fork":false,"pushed_at":"2019-07-27T09:31:49.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-22T11:17:15.646Z","etag":null,"topics":["appcenter","azure-functions"],"latest_commit_sha":null,"homepage":"","language":"C#","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/shibayan.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}},"created_at":"2019-05-28T04:46:23.000Z","updated_at":"2020-01-14T17:41:38.000Z","dependencies_parsed_at":"2023-04-25T23:02:25.243Z","dependency_job_id":null,"html_url":"https://github.com/shibayan/azure-functions-appcenterpush-extension","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shibayan/azure-functions-appcenterpush-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shibayan%2Fazure-functions-appcenterpush-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shibayan%2Fazure-functions-appcenterpush-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shibayan%2Fazure-functions-appcenterpush-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shibayan%2Fazure-functions-appcenterpush-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shibayan","download_url":"https://codeload.github.com/shibayan/azure-functions-appcenterpush-extension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shibayan%2Fazure-functions-appcenterpush-extension/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269838521,"owners_count":24483229,"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-08-11T02:00:10.019Z","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":["appcenter","azure-functions"],"created_at":"2024-10-31T16:07:25.950Z","updated_at":"2025-08-11T06:20:18.441Z","avatar_url":"https://github.com/shibayan.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Functions Bindings for App Center Push\n\n[![Build Status](https://dev.azure.com/shibayan/azure-functions-appcenterpush-extension/_apis/build/status/Build%20azure-functions-appcenterpush-extension?branchName=master)](https://dev.azure.com/shibayan/azure-functions-appcenterpush-extension/_build/latest?definitionId=30\u0026branchName=master)\n\n## NuGet Packages\n\nPackage Name | Target Framework | NuGet\n---|---|---\nWebJobs.Extensions.AppCenterPush | .NET Standard 2.0 | [![NuGet](https://img.shields.io/nuget/v/WebJobs.Extensions.AppCenterPush.svg)](https://www.nuget.org/packages/WebJobs.Extensions.AppCenterPush)\n\n## Basic usage\n\n```csharp\npublic static class Functions\n{\n    // Use IAsyncCollector\u003cT\u003e\n    [FunctionName(\"Function1\")]\n    public static async Task\u003cIActionResult\u003e Function1(\n        [HttpTrigger(AuthorizationLevel.Function, \"post\")] HttpRequest req,\n        [AppCenterPush(OwnerName = \"owner\", AppName = \"app\")] IAsyncCollector\u003cAppCenterPushMessage\u003e collector,\n        ILogger log)\n    {\n        await collector.AddAsync(new AppCenterPushMessage\n        {\n            Content = new AppCenterPushContent\n            {\n                Name = \"First Push From App Center\",\n                Title = \"Push From App Center\",\n                Body = \"Hello! Isn't this an amazing notification message?\",\n                CustomData = new { key1 = \"val1\", key2 = \"val2\" }\n            }\n        });\n\n        return new OkResult();\n    }\n    \n    // Use returning value\n    [FunctionName(\"Function2\")]\n    [return: AppCenterPush(OwnerName = \"owner\", AppName = \"app\")]\n    public static AppCenterPushMessage Function2(\n        [HttpTrigger(AuthorizationLevel.Function, \"post\")] HttpRequest req,\n        ILogger log)\n    {\n        return new AppCenterPushMessage\n        {\n            Content = new AppCenterPushContent\n            {\n                Name = \"First Push From App Center\",\n                Title = \"Push From App Center\",\n                Body = \"Hello! Isn't this an amazing notification message?\",\n                CustomData = new { key1 = \"val1\", key2 = \"val2\" }\n            }\n        };\n    }\n}\n```\n\n```json\n{\n  \"IsEncrypted\": false,\n  \"Values\": {\n    \"AzureWebJobsStorage\": \"\",\n    \"FUNCTIONS_WORKER_RUNTIME\": \"dotnet\",\n    \"AppCenterPushApiToken\": \"\u003cAPP CENTER API TOKEN\u003e\"\n  }\n}\n```\n\n![image](https://user-images.githubusercontent.com/1356444/58454220-47c28880-810d-11e9-8718-b66cbcccfa60.png)\n\n\n## Push Targeting\n\n### Audience\n\n```csharp\nawait collector.AddAsync(new AppCenterPushMessage\n{\n    Content = new AppCenterPushContent\n    {\n        Name = \"First Push From App Center\",\n        Title = \"Push From App Center\",\n        Body = \"Hello! Isn't this an amazing notification message?\",\n        CustomData = new { key1 = \"val1\", key2 = \"val2\" }\n    },\n    Target = new AppCenterPushAudiencesTarget\n    {\n        Audiences = new[] { \"dog-lovers\", \"cyclists\" }\n    }\n});\n```\n\n### Devices\n\n```csharp\nawait collector.AddAsync(new AppCenterPushMessage\n{\n    Content = new AppCenterPushContent\n    {\n        Name = \"First Push From App Center\",\n        Title = \"Push From App Center\",\n        Body = \"Hello! Isn't this an amazing notification message?\",\n        CustomData = new { key1 = \"val1\", key2 = \"val2\" }\n    },\n    Target = new AppCenterPushDevicesTarget\n    {\n        Devices = new[] { \"00000000-0000-0000-0000-000000000001\",\"00000000-0000-0000-0000-000000000002\", \"00000000-0000-0000-0000-000000000003\" }\n    }\n});\n```\n\n### User Ids\n\n```csharp\nawait collector.AddAsync(new AppCenterPushMessage\n{\n    Content = new AppCenterPushContent\n    {\n        Name = \"First Push From App Center\",\n        Title = \"Push From App Center\",\n        Body = \"Hello! Isn't this an amazing notification message?\",\n        CustomData = new { key1 = \"val1\", key2 = \"val2\" }\n    },\n    Target = new AppCenterPushUserIdsTarget\n    {\n        UserIds = new[] { \"james@somecompany.com\", \"allison@somecompany.com\", \"anna@somecompany.com\" }\n    }\n});\n```\n\n### Account Ids\n\n```csharp\nawait collector.AddAsync(new AppCenterPushMessage\n{\n    Content = new AppCenterPushContent\n    {\n        Name = \"First Push From App Center\",\n        Title = \"Push From App Center\",\n        Body = \"Hello! Isn't this an amazing notification message?\",\n        CustomData = new { key1 = \"val1\", key2 = \"val2\" }\n    },\n    Target = new AppCenterPushAccountIdsTarget\n    {\n        AccountIds = new[] { \"00000000-0000-0000-0000-000000000001\", \"00000000-0000-0000-0000-000000000002\", \"00000000-0000-0000-0000-000000000003\" }\n    }\n});\n```\n\n## License\n\nThis project is licensed under the [MIT License](https://github.com/shibayan/azure-functions-appcenterpush-extension/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshibayan%2Fazure-functions-appcenterpush-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshibayan%2Fazure-functions-appcenterpush-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshibayan%2Fazure-functions-appcenterpush-extension/lists"}