Closed tuyenbuiqn closed 9 years ago
Need more info, but I suspect you're mixing up the Sandbox/Production push certificates and iOS app being compiled with either AdHoc or App Store provisioning profile.
You must send APNS with Production cert (to production server) if the device token you get is from an app signed with AdHoc or AppStore provisioning profile. Otherwise, use Sandbox certificate and connect to sandbox servers.
Hi guys,
I write a window service to push notification to all os flatform(ios,adroid) selected from database. When I test it in local PC, it works well. All devices are received message. But when I install this service to Window server 2k8, it doesn't work as I expect. The problem is when I push, only android devices received, ios devices aren't received any message! I try to change many ways to push it, but it still doesn't work.
I push all ios and android devices, only android devices received message. And when I read the log file, IOS devices are sent successful. @@ It works well at local PC. This is my code, please let me know what happened.
var push = new PushBroker(); push.OnNotificationSent += NotificationSent; push.OnChannelException += ChannelException; push.OnServiceException += ServiceException; push.OnNotificationFailed += NotificationFailed; push.OnDeviceSubscriptionExpired += DeviceSubscriptionExpired; push.OnDeviceSubscriptionChanged += DeviceSubscriptionChanged; push.OnChannelCreated += ChannelCreated; push.OnChannelDestroyed += ChannelDestroyed; try { /// Get data from database MinfoDataContext dx = new MinfoDataContext(); List lstPushToPush = (from p in dx.CS_PushNotifications_GetToPush() select p).ToList();
Hope to see good news from you. Thank for reading. Please help me, thank you very much!