A method for managing a notification procedure between an integrated circuit card operating in a communication device configured to communicate with a mobile communication network and a remote provisioning system, said notification procedure being activated by a given event occurring at the communication device, said notification procedure comprising performing one or more attempts of sending by the integrated circuit card a notification comprising a notification message to a node of said provisioning system configured to manage over the air communication with the integrated circuit card, said notification procedure comprising associating a notification sequence number to each notification, wherein said method comprising:
- providing in the integrated circuit card a reset variable or flag configured to be set to indicate an integrated circuit card reset at a beginning of said notification procedure;
- saving notification information, including said notification message, said notification sequence number and a number of said one or more attempts left to perform, in persistent objects in the memory of the integrated circuit card;
- when an event interrupting said notification procedure occurs at the communication device, then, after an integrated circuit card circuit reset is performed:
- retrieving said notification information from said persistent object;
- checking a value of said reset variable or flag;
- where the value of said reset variable or flag indicates that the integrated circuit card reset occurred, maintaining the notification sequence number and performing a next of said one or more attempts of which are left to perform;
- where the value of said reset variable or flag does not indicate that the integrated circuit card reset occurred, incrementing the notification sequence number;
- and
- setting said reset variable or flag to not indicate an integrated circuit card reset when said notification procedure is completed or when said notification procedure is failed for a protocol failure or due to a reason different from power loss or other card reset determining event.