DTDAnalytics.xcframework
to the project (check Do Not Embed)didFinishLaunchingWithOptions
method:DTDMessagingDelegate
protocolDTDMessaging
module provides support for notifications with attachments. These notifications are available since iOS 10. Attachments support images, animated gifs and videos. To use this function, you will need to create a “Notification Service Extension“, for this create a new target in your application settings:Notification Extension
class as follows:Notification Extension
class from DTDMediaAttachmentExtension
DTDMessaging
modulestartPushService
isAllowed
apnsToken
apnsTokenString
delegate
pushNotificationsOptions
OptionSet
, is set by the developer to select the method for notifying the user. May be changed by the end user.[.DTDNotificationOptionBadge, .DTDNotificationOptionSound, .DTDNotificationOptionAlert]
DTDMessagingDelegate
methodsdidFailToRegisterForRemoteNotifications
(with error:
Error
)
Error
base class. didOpenRemoteNotification
(with message:
DTDMessage
, and buttonClicked:
DTDActionButton?
)
DTDMessage
object and an optional DTDActionButton
object are passed.didReceiveForegroundNotification
(with message:
DTDMessage
)
DTDMessage
object is passed.didReceiveInvisibleNotification
(with message:
DTDMessage
)
DTDMessage
object is passed. didRegisterForRemoteNotifications
(with deviceToken:
Data
)
pushToken
successfully arrives; represented by a Data.payload
actionType
App
- default valueUrl
- open an external linkShare
- share contentDeeplink
- open a link inside the application actionString
badge
category
actionType
App
- default valueUrl
- open an external linkShare
- share contentDeeplink
- open a link inside the applicationactionString
buttonId
text
UNUserNotificationCenter
_fg = 1
). In this case, the display method will be formed from the Notification settings.userNotificationCenter willPresent notification
. In this case, the display properties will be taken from the developer.OptionSet
that is used to pass push notification authorization and set up interactions with users.DTDNotificationOptionBadge
DTDNotificationOptionSound
DTDNotificationOptionAlert
DTDNotificationOptionCarPlay
DTDNotificationOptionCriticalAlert
DTDNotificationOptionProvidesSettings
DTDNotificationOptionProvisional
DTDNotificationOptionAnnouncement
DTDNotificationOptionProvisional
- Provisional push notifications appear in the user's Notification Center, but not on the lock screen. This type of push notification does not have to be explicitly allowed by the user. Start submitting them as soon as the user installs and runs your application. However, the user can also opt in/opt out of notifications, but they will need to do it explicitly.DTDNotificationOptionProvisional
setting, the user will be able to subscribe to explicit notifications only from the notification center settings.DTDMediaAttachmentExtension
NotificationService
from DTDMediaAttachmentExtension
DTDMessagingSwizzlingEnabled
(boolean) in the app’s Info.plist
file and set it to NO (0). However, if you disable notification swizzling, you will need additional integration for accurate analytics:DTDMessagingDelegate
methods will not be called.