Skip to content
Menu

Operations

Troubleshooting

Markdown version

Symptoms, causes and fixes for the problems teams hit most often with the Herald SDK, from rejected batches to messages that never show.

Find the symptom, check the cause, apply the fix. Turn on debug logging first: most causes leave a line in the log. See Logging and debugging.

Data and identity

SymptomCauseFix
Log shows Herald rejected the app key: check the publishable key in configure and nothing reaches HeraldThe app key is wrong, or the connection is not activeCopy the key again from the connection's Mobile SDK card and check the connection is active. The SDK keeps the events and sends them on the next launch with the right key.
401 only for signed-in usersVerification is Required and the user token is missing or wrongMint the token on your backend from the exact External ID you pass to identify. Call setUserToken right after identify.
401 for every signed-in user after a change on the connectionSomeone rotated the ingest token, which invalidates every user tokenRe-mint tokens with the new ingest token and deliver them to the apps
One message sync 401 right after sign-in, then cards appearidentify fetched messages before setUserToken ran, under Required verificationHarmless. Call setUserToken immediately after identify; it fetches again with the token.
A session-start in-app message does not show in the first session after sign-inThe session-start trigger ran before the token-authenticated fetch returned the messageExpected; it can show from the next session.
The user's profile in Herald stays emptyVerification is Optional and the batch had no token, so it was stored as anonymousCall setUserToken after identify
... ignored: ... in the logThe call broke a limit, such as an empty event name or a 201-character External IDFix the call. See Limits.
Email or phone not storedThe value failed the check and that key was dropped ($email is not a valid email)Send a valid address, and phone numbers in E.164 (+15551234567)
Nothing is sent at allconfigure never ran, or the SDK is disabledCall configure at launch. After wipeData(), the SDK stays off until setEnabled(true).
Calls made at startup are missingMore than 1,000 calls ran before configureCall configure earlier, before other SDK calls
Event queue full: dropped N oldest event(s)Uploads failed for a long time, or a call runs in a tight loopCheck the network and the batch status; remove the loop

Content cards and in-app messages

SymptomCauseFix
No cards or in-app messagesThe device is anonymous or unverified, so the fetch returns empty listsIdentify the user and set a valid user token
An agent send produced no card for the userThe user had no SDK device on that connection at send time, so the send was suppressedMake sure the user has opened the app with the SDK at least once, then send again
A new card appears only after a restartCards are fetched at session start and after sign-inCall refreshContentCards() when the user opens your inbox
In-app messages never showNo presenter is installed (not shown (no presenter or no active scene) on iOS)Call Herald.useDefaultInAppUI() (iOS) or HeraldInAppPresenter.install() (Android) after configure
A message showed once and never againIts re-eligibility is once. History is kept per user on the device, across restarts and sign-outs.Expected. wipeData() clears the history on a test device.
A message shows later than its triggerAnother message was up, the 30-second minimum interval had not passed, or the delegate answered laterExpected: pending messages show when they can. Lower inAppMinimumInterval in development if needed.
The iOS delegate is never calledThe SDK holds the delegate weakly and it was releasedKeep a strong reference to your delegate object
No in-app messages in one Android screenThe activity is not a ComponentActivityExtend ComponentActivity or AppCompatActivity

Push

SymptomCauseFix
No push token stored for the userTokens are stored only for identified, verified usersIdentify the user and set the user token; the SDK sends the token again after identify
iOS push fails with DeviceTokenNotForTopicThe bundle ID on the connection differs from the app'sFix the bundle ID in the connection's APNs settings
Android: Firebase is not initialized; push token not syncedgoogle-services.json is missing or the Google services plugin is not appliedAdd both, then rebuild
Taps do not log opens or open deep links (iOS)handleNotificationResponse is not called, or the notification center delegate is not setSet UNUserNotificationCenter.current().delegate at launch and forward didReceive
Taps do not log opens (Android)handleNotificationIntent is missing from onCreate or onNewIntent of the launcher activityCall it in both
Deep link does nothing on Android (openUrl failed)No activity has an intent filter for the schemeAdd the intent filter
No image on iOSNo Notification Service Extension, or the image is not HTTPS, is over 10 MB or is not JPEG, PNG, GIF or HEICAdd the extension with HeraldNotificationService; serve a supported image over HTTPS
Push still arrives after sign-outThe anonymous batch that unbinds the device has not reached Herald yetCall flush() after reset() if the app may close right away
No action buttons on pushes from HeraldThe variant has no action buttons, the iOS extension is missing, or herald-fcm is not in the Android appAdd buttons in Delivery options (mobile SDK) and check the platform setup. See Rich push.
New cards and messages wait for the next sessionThe sync push is not handled, or was sent in the last five minutesTurn on the Remote notifications background mode and forward the push on iOS. See Silent push.

Still stuck

Collect the SDK version, platform and OS version, the debug log from app launch to the problem, and the User ID (shown to your users as Support ID) or the External ID, and the time of a failing call. Then contact your account team. See Versioning and support.

See Herald decide live →