1

I am receiving remote notifications from Azure Notification hub in my iOS app. Notification are sent with different type like:

1.

{ "aps":
    {"message":"You got one new message"}
}

2.

{ "aps": 
    {"geoData":"Dubai, UAE"}
}

I want to restrict notification alerts to "type 1" only as I don't need to alert users about geoData notifications. Can someone help me?

pableiros
  • 14,932
  • 12
  • 99
  • 105
  • you can do that on your azure only, system is taking care of notifications, you don't have access to them before you open app – Lu_ Aug 24 '16 at 17:18
  • @Zahid Usman Cheema use group for notifications which provider using ? provider must be give notification group codes. – SwiftDeveloper Aug 24 '16 at 17:29
  • sure. There is something called notification tag on azure. we can add a tag with a notification. I think that may help. – Zahid Usman Cheema Aug 24 '16 at 17:48
  • I have no user groups. I need to send both notification to all users but notify for type 1 only as type 2 notifications will be used to update location on Map. – Zahid Usman Cheema Aug 24 '16 at 17:51
  • You can send a silent notification through Notification Hubs and simply not display it on your client. See https://azure.microsoft.com/en-us/documentation/articles/notification-hubs-aspnet-backend-ios-push-apple-apns-secure-notification for an application of silent notifications. – Mimi Xu Aug 25 '16 at 18:15
  • Thanks. That helped. – Zahid Usman Cheema Jan 25 '17 at 15:03

0 Answers0