Messaging Api

Messaging Api

BY 25 Jul 2017 Native Application Development
I am currently working with Message Api in Tizen Native App. I am trying to get all message in my inbox. I open a message service handler and it opens without any problem. I am currently working with for_each_message() Api. From, tizen documentation, i got that it will fetch all sms inside my sms inbox. but when i am using this Api, it only fetched the last sms received. here is my code: void messages_search_callback(messages_message_h msg, int index, int result_count, int total_count, void *user_data) { dlog_print(DLOG_INFO, “inside message search callback”); } int ret = messages_foreach_message(Message_service_handler msh, MESSAGES_MBOX_INBOX, MESSAGES_TYPE_SMS, NULL, NULL, 0, 0, messages_search_callback, NULL); Anyone can help me regarding this?? what should be the return type of callback so that i can iterate all sms in my inbox. Thanks In Advance
Written by