MobiWeb Help

Data Field Guidelines and Best Practices

Data Field Guidelines

  • All values in the data object must be strings.

  • Non-string values will be automatically converted to strings.

  • The data field is optional but useful for passing custom information to your app.

  • Data is delivered to the app even when it is in the background.

Best Practices

  1. Keep titles concise: notification titles should be short and descriptive.

  2. Use data for context: include relevant IDs and metadata in the data field.

  3. Topic naming: use descriptive topic names that match your app's notification categories.

  4. Token management: keep device tokens up-to-date and remove invalid tokens.

  5. Batch requests: when sending to multiple devices, use the tokens array for better performance.

03 May 2026