How to clear inbox programmatically?
Dear Sir,
I am already using the "Delete messages after being received coding" in my application which is as far working quite well.
But as soon as my application shuts down, the delivery notifications and other spam messages keeps on accumulating in the inbox of the Huewei messenger.
I want to flush out all the messages present in the inbox as soon as my application starts.
If I do not clear the inbox, the messages piles up in the inbox, which hampers the functioning of my application.
Please help me getting my job accomplished.
Thanx
Replies (1)
RE: How to clear inbox programmatically? - Added by admin 11 days ago
Hi,
Try using the DeleteMessage(MessageDeleteOption messageDeleteOption, params int[] indexes) API. For the indexes, pass in as null, and use the correct message delete option.
Thanks
Regards
admin
(1-1/1)