TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mayur Gujrathi
409
3.9k
1m
sending notification failed with payload in c#
Aug 4 2017 2:26 AM
I am trying to send notification on Iphone with payload which is getting failed ..same code is working fine without payload
AppleNotificationPayload p =
new
AppleNotificationPayload();
p.AddCustom(
"clientcode"
,
"sdfsdfsdf"
);
p.AddCustom(
"lotId"
,
"sdfdsfsdf"
);
p.AddCustom(
"productCode"
,
"sdfsdffsd"
);
String gcm_token = dtnoti_GcmList.Rows[r][
"gcmToken"
].ToString().Trim();
String DeviceType = dtnoti_GcmList.Rows[r][
"deviceType"
].ToString().Trim();
push.QueueNotification(
new
AppleNotification()
.ForDeviceToken(Convert.ToString(dtnoti_GcmList.Rows[r][
"gcmToken"
]))
.WithAlert(Convert.ToString(message))
.WithBadge(1)
.WithContentAvailable(1)
.WithPayload(p)
.WithCategory(Convert.ToString(
"TradingVivekamAlert"
))
.WithSound(
"sound.caf"
));
when i remove .WithPayload(p) it works fine
Reply
Answers (
1
)
WIA Scanner Issue when hosted in server
Insert Textbox value to a specific row and column?