ModuleCode
@objc(MoEngageMessagingRequestFailureReasonModuleCode)
public enum ModuleCode : Int
Messaging-specific failure codes.
-
The supplied push token was invalid —
nil, empty, or otherwise not usable for APNs registration with MoEngage.Declaration
Swift
case invalidPushToken -
APNs registration with MoEngage failed — covers the customer’s explicit
didFailToRegisterForPush()signal as well as internal register-pipeline rejections.Declaration
Swift
case pushRegisterFailed -
The impression payload was already tracked in a prior call. Not an integration error — typically arises when the same push payload reaches the SDK via multiple delivery paths (NSE + delegate, or repeated foreground delivery). Customers usually ignore this case.
Detection is best-effort under concurrent delivery — absence of this failure is not a no-duplicate guarantee.
Declaration
Swift
case duplicateImpression