Create shortcuts programmatically

Hi.

Could anyone show me the way to programmatically create list of shortcuts (using NSUserActivity or Intents) when application starts?

For example, at compilation time i prepare, say, 15 empty shortcuts (Shortcut1-15).

When app is starting up, it loads from internet some file with params/commands for each shortcut and, if shortcut command is not empty, donates it to system. Next, user link donated shortcuts with his voice and could use them.

Commands like open tab1, open tab2, click button5, etc.

Is this behavior possible?

Replies

Please see this article about how to make suggestions to users.