Check the website for your country's consulate in Canada for information about how arrangements will be handled. I'm from the US but live in another country. My next of kin will be notified by the US Department of State, and they will be given the option to identify my body and have it repatriated to the US, for which there will be expenses from the local funeral home as well as a specific shipping process via an airline. They do not have to come claim my body and bury it here nor escort it back to the States if they don't want to. If they do, then they will also have the opportunity to be the executors of my estate, and my savings will go to their expenses before any creditors, but they will have to pay out of pocket and go through probate in order to be reimbursed. You'll need to check the estate and probate laws for your country.
In my case, I have been in no contact with my family for years, and they will likely not take any responsibility to identify my body or do any of the rest, which means my body will remain in this country and be disposed of by the local government, which is what I prefer anyway. Either way, they'll do what they choose that best serves their interests and their narrative, I have no control over it and don't care. They're screwing themselves over if they publish an obituary and have a service, people they'd rather not have contact with are likely going to cause discomfort. Basically, they're going to be in a pickle because last I knew, they publicly claimed to still be in contact with me, and they'll have to come up with more bull or fess up, whether they claim my body and acknowledge my death or not.
Don't mean to highjack your thread with my story, I've been processing this for months. But it may be helpful for others who read the thread if they are in a similar situation, either being a US citizen in a foreign country, or who are also no-contact with their next of kin. Next of kin have the right to refuse responsibility as well as to take it, whether for the body or for the estate if there is not already a will with an executor. I didn't research deeply, but it's my understanding that in the US one can give power of attorney to someone else to override the next of kin's rights in claiming the body, and can name someone other than them as executor of the estate.