Comments (2)
Have you tried:
var fcmInstallation = new Installation
{
InstallationId = InstallationId,
Platform = notificationPlatform,
PushChannel = deviceHandle,
PushChannelExpired = false,
Tags = new[] { "fcm" }
};
fcmInstallation.Templates.Add("template3", new InstallationTemplate
{
Body = JsonConvert.SerializeObject(new
{
data = new { title = "Reale-PRE", body = "$(shortText)" },
notification = new { title = "Reale-PRE", body = "$(shortText)" }
})
});
await hub.CreateOrUpdateInstallationAsync(fcmInstallation);
from azure-notificationhubs-dotnet.
thanks @omora
Together with #10 that solved my problem 😄
from azure-notificationhubs-dotnet.
Related Issues (20)
- [BUG] enableTestSend gives error "Root element is missing"
- [BUG] GCM HTTP protocol parameters not passed on ?
- [BUG] GetRegistrationsByChannel filters to ChannelUri
- [BUG] Release 4.1.1 is not published to NuGet so issues #199 & #205 are not fixed HOT 4
- ASP.NET MVC 5 .NET 4.7.2 hangs when calling InstallationExists or DeleteInstallation HOT 2
- Bulk import is still on Running state only
- Best practice using with azure functions (socket exceptions)
- [BUG] NotificationHubClient.UpdateRegistrationAsync throws MessagingException
- [BUG] Send Template Notification Fails (WNS)
- [BUG] - Expiration Time for installation/registration is being set to to default value when use PatchInstallation
- Issue while sending Notification based on different templates (Silent & Standard)
- [QUERY] what is the release cadence?
- [FEATURE REQ] Update Firebase Messaging to stop using old FCM APIs HOT 1
- Firebase Legacy HTTP Send API are to be decommissioned after June 20, 2024 HOT 2
- [BUG] NotificationHubClient.GetRegistrationsByChannelAsync not returning any result on IOS
- [BUG] Azure notification hub doesn't accept token format from firebase_messaging
- [BUG] Notifications continue to send after deleting an installation HOT 2
- [Question] Azure Notification Hub on MAUI HOT 25
- [BUG] MessagingEntityNotFoundException when getting notification outcome details
- The Push Notification System handle for the registration is invalid
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-notificationhubs-dotnet.