While isOutboundNotification could be rolled into handleNotificationWithUserInfo, we felt that keeping them seperate makes the intention of each function clearer and provides more flexibility.
Changes
Added didReceiveRemoteNotification method to return if a notification is from Outbound or not.
Added
isOutboundNotification
method to make handling other notifications easier.Now
didReceiveRemoteNotification
can be implemented as:While
isOutboundNotification
could be rolled intohandleNotificationWithUserInfo
, we felt that keeping them seperate makes the intention of each function clearer and provides more flexibility.Changes
didReceiveRemoteNotification
method to return if a notification is from Outbound or not.