Retrieve message code/id to view details (API / PHP SDK)

Comments

3 comments

  • Avatar
    Nikolai Polkhovskiy

    Hi!

    Actually, you can retrieve a message code from the /createMessage response if you turn on the Debug Mode. With DM enabled, all responses (regardless of the amount of devices in the request) will be returning message code.

    However, please note that Debug Mode will turn off automatically in one hour.

  • Avatar
    victorflag

    Thank you for your answer. I would like to be able to save details in database, even in production mode. Is there any way to do this?

  • Avatar
    Ivan Skoritzky

    Hi, please note that there is no way to save message codes in case you send pushes to the less than 10 devices via the "devices" parameter since we do not save such messages on our servers.The only way to get these details is turning on the Debug Mode in your Push History.

    Regards, Ivan.

Please sign in to leave a comment.