Comments (5)
To work around this bug until we're able to publish a fix, folks can add the header themselves manually in the following way:
Notification myNotification = Notifiation.createWindowsNotification("<toast launch=\"test_launch\">/* my toast body */</toast>");
Map<String, String> myNotificationHeaders = myNotification.getHeaders();
myNotificationHeaders.put("X-WNS-Type", "wns/toast");
myNotification.setHeaders(myNotificationHeaders);
from azure-notificationhubs-java-backend.
Yes, and that is what fixed for us as well. I had already raised an issue here: MicrosoftDocs/azure-docs#58779
from azure-notificationhubs-java-backend.
Yeah, Even after adding the X-WNS-Type header as wns/toast, the notification is not received by the UWP application.
from azure-notificationhubs-java-backend.
Thanks for filing this, @rustem08! Looks like a good bug.
@Druffl3, I believe your issue is an independent one. If you can pare down your situation to a specific SDK related problem, please file a new issue. Otherwise, take a look at our other support options: https://azure.microsoft.com/en-us/support/options/#overview
from azure-notificationhubs-java-backend.
Next time we release (can't promise timeline right at the moment) this will be fixed for you.
from azure-notificationhubs-java-backend.
Related Issues (20)
- When trying making a new NotificationHub programmatically, it causes 401 Unauthorized Error. HOT 1
- [BUG] 400 Bad Request when exporting registrations HOT 1
- iOS not receiving pending push after turn on Internet from Azure Notification Hub
- extra dependency needed: org.apache.httpcomponents.client5 httpclient5 HOT 2
- [BUG] : java.lang.RuntimeException: org.apache.hc.core5.http.ParseException: Invalid protocol version; error at offset 0: <[0x2e][0x2f][0x30][0x31][0x32][0x33][0x34][0x35][0x36][0x37][0x38][0x39][0x3a][0x3b][0x3c][0x3d][0x3e]> HOT 4
- [BUG] sendDirectNotification for batch of devices is returning 500 status for FCM notifications HOT 1
- [BUG] Notification Hubs incompatible with Spring? java.lang.RuntimeException: org.apache.hc.core5.http.ParseException: Invalid protocol version; error at offset 0: <[0x2e][0x2f][0x30][0x31][0x32][0x33][0x34][0x35][0x36][0x37][0x38][0x39][0x3a][0x3b][0x3c][0x3d][0x3e]> HOT 1
- [BUG] Caused by: java.lang.ClassNotFoundException: org.apache.hc.client5.http.entity.mime.ContentBody with 1.0.4 of azure notificationhub sdk HOT 1
- Unable to successfully send android notification HOT 1
- [BUG] Connection closed while dispatching a push notification
- [BUG] Get a notification hub by the hub path not working HOT 2
- [QUERY] Missing notifications on ios 13+ with apns HOT 1
- [BUG] Can not send message to Baidu PNS server.
- XML Injection for all registrations HOT 4
- Getting 401 - Invalid token HOT 1
- Error: 400 Bad Request - notificationhub job payload is invalid HOT 2
- NotificationHub.createOrUpdateInstallation got Internal server error. HOT 3
- Bintray and JCenter Decommissioning HOT 3
- createWindowsNotification doesn't add X-WNS-Type header when the message body has xml prolog HOT 1
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-java-backend.