We read the id from the manifest now.  use chrome.runtime.id in javascript.  If you need this on the native side, you will need to send it over, since for Vanilla apps there may not be a manifest file.