Skip to main content

Problem

The “DeviceTokenNotForTopic” error occurs when sending push notifications in iOS to a reachable user.

Explanation

This error happens if the PEM file or AuthKey(.p8 file) is uploaded with the wrong Bundle Identifier in the MoEngage dashboard.

Example

Suppose the app’s Bundle Identifier is com.xyz.moengage, but the Bundle identifier associated with the PEM/AuthKey is com.abc.moengage, this error will occur.

Solution

To resolve the “DeviceTokenNotForTopic” error, the development team must address the abovementioned issue.