{"action":"created","issue":{"url":"https://api.github.com/repos/lampaa/com.lampa.startapp/issues/47","repository_url":"https://api.github.com/repos/lampaa/com.lampa.startapp","labels_url":"https://api.github.com/repos/lampaa/com.lampa.startapp/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/lampaa/com.lampa.startapp/issues/47/comments","events_url":"https://api.github.com/repos/lampaa/com.lampa.startapp/issues/47/events","html_url":"https://github.com/lampaa/com.lampa.startapp/issues/47","id":150822998,"number":47,"title":"Cannot read property 'set' of undefined","user":{"login":"ofcapl","id":829326,"avatar_url":"https://avatars.githubusercontent.com/u/829326?v=3","gravatar_id":"","url":"https://api.github.com/users/ofcapl","html_url":"https://github.com/ofcapl","followers_url":"https://api.github.com/users/ofcapl/followers","following_url":"https://api.github.com/users/ofcapl/following{/other_user}","gists_url":"https://api.github.com/users/ofcapl/gists{/gist_id}","starred_url":"https://api.github.com/users/ofcapl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ofcapl/subscriptions","organizations_url":"https://api.github.com/users/ofcapl/orgs","repos_url":"https://api.github.com/users/ofcapl/repos","events_url":"https://api.github.com/users/ofcapl/events{/privacy}","received_events_url":"https://api.github.com/users/ofcapl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-25T11:00:42Z","updated_at":"2016-04-25T11:07:35Z","closed_at":null,"body":"Hello,\r\nI'm writing an app which launch other apps (games) from it - here's my code:\r\n\r\n```\r\n        var app = navigator.startApp.set({\r\n            \"package\": \"com.ea.game.nfs14_row\"\r\n        });\r\n        app.start(function(){\r\n            console.log('Game started!');\r\n        }, function(err){\r\n            console.log('Game start failed! ', err);\r\n        });\r\n```\r\n\r\nIt's activated on click event via button, but when I click I'm getting an error:\r\n\r\n`Uncaught TypeError: Cannot read property 'set' of undefined`\r\n\r\nEarlier, I was trying to use `startApp` without `navigator` but that raises me an error that `startApp is not defined`. \r\n\r\nI'm using Intel XDK and I've added plugin via it's window plugin tool by pasting github url - I think it is installed correctly.\r\n\r\nPlease help!"},"comment":{"url":"https://api.github.com/repos/lampaa/com.lampa.startapp/issues/comments/214266897","html_url":"https://github.com/lampaa/com.lampa.startapp/issues/47#issuecomment-214266897","issue_url":"https://api.github.com/repos/lampaa/com.lampa.startapp/issues/47","id":214266897,"user":{"login":"lampaa","id":927585,"avatar_url":"https://avatars.githubusercontent.com/u/927585?v=3","gravatar_id":"","url":"https://api.github.com/users/lampaa","html_url":"https://github.com/lampaa","followers_url":"https://api.github.com/users/lampaa/followers","following_url":"https://api.github.com/users/lampaa/following{/other_user}","gists_url":"https://api.github.com/users/lampaa/gists{/gist_id}","starred_url":"https://api.github.com/users/lampaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lampaa/subscriptions","organizations_url":"https://api.github.com/users/lampaa/orgs","repos_url":"https://api.github.com/users/lampaa/repos","events_url":"https://api.github.com/users/lampaa/events{/privacy}","received_events_url":"https://api.github.com/users/lampaa/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T11:07:34Z","updated_at":"2016-04-25T11:07:34Z","body":"Hi, @ofcapl. Remove \"navigator\" from code:\r\n\r\nvar app = startApp.set({\r\n            \"package\": \"com.ea.game.nfs14_row\"\r\n        });\r\n        app.start(function(){\r\n            console.log('Game started!');\r\n        }, function(err){\r\n            console.log('Game start failed! ', err);\r\n        });\r\n"}}