Generate and store an unique identifier. AppStore-safe.