{"action":"created","issue":{"url":"https://api.github.com/repos/evothings/cordova-ble/issues/82","labels_url":"https://api.github.com/repos/evothings/cordova-ble/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/evothings/cordova-ble/issues/82/comments","events_url":"https://api.github.com/repos/evothings/cordova-ble/issues/82/events","html_url":"https://github.com/evothings/cordova-ble/issues/82","id":117798342,"number":82,"title":"Trouble getting Cordova app working of an EvoThings Workbench example.","user":{"login":"josephclawrence","id":1594261,"avatar_url":"https://avatars.githubusercontent.com/u/1594261?v=3","gravatar_id":"","url":"https://api.github.com/users/josephclawrence","html_url":"https://github.com/josephclawrence","followers_url":"https://api.github.com/users/josephclawrence/followers","following_url":"https://api.github.com/users/josephclawrence/following{/other_user}","gists_url":"https://api.github.com/users/josephclawrence/gists{/gist_id}","starred_url":"https://api.github.com/users/josephclawrence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephclawrence/subscriptions","organizations_url":"https://api.github.com/users/josephclawrence/orgs","repos_url":"https://api.github.com/users/josephclawrence/repos","events_url":"https://api.github.com/users/josephclawrence/events{/privacy}","received_events_url":"https://api.github.com/users/josephclawrence/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mikaelkindborg","id":187471,"avatar_url":"https://avatars.githubusercontent.com/u/187471?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaelkindborg","html_url":"https://github.com/mikaelkindborg","followers_url":"https://api.github.com/users/mikaelkindborg/followers","following_url":"https://api.github.com/users/mikaelkindborg/following{/other_user}","gists_url":"https://api.github.com/users/mikaelkindborg/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelkindborg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelkindborg/subscriptions","organizations_url":"https://api.github.com/users/mikaelkindborg/orgs","repos_url":"https://api.github.com/users/mikaelkindborg/repos","events_url":"https://api.github.com/users/mikaelkindborg/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelkindborg/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-11-19T11:55:58Z","updated_at":"2015-12-08T12:15:22Z","closed_at":null,"body":"I am trying to create Cordova app, using PhoneGap, and initially using one of the RedBearLabs examples from EvoThingsWorkbench. I have followed all the instructions as far as I can see, and tried multiple different ways, also with Cordova CLI. I have added the Evothings BLE Cordova plugin, but it doesn't work.\r\n\r\nI have added in some debugging code, and I can see that 'evothings.ble' is undefined. So it is at the point that evothings.ble.stopScan() is called that the app fails. \r\n\r\nI have tried to find where this evothings.ble object should be coming from but I can't find it - I'm not well versed enough in Objective C to dive in deeper, but according to the documentation I should be able to get this EvoThings Workbench example working as a Cordova app, with the correct plugins installed.\r\n\r\nThanks in advance for any help!"},"comment":{"url":"https://api.github.com/repos/evothings/cordova-ble/issues/comments/162863914","html_url":"https://github.com/evothings/cordova-ble/issues/82#issuecomment-162863914","issue_url":"https://api.github.com/repos/evothings/cordova-ble/issues/82","id":162863914,"user":{"login":"josephclawrence","id":1594261,"avatar_url":"https://avatars.githubusercontent.com/u/1594261?v=3","gravatar_id":"","url":"https://api.github.com/users/josephclawrence","html_url":"https://github.com/josephclawrence","followers_url":"https://api.github.com/users/josephclawrence/followers","following_url":"https://api.github.com/users/josephclawrence/following{/other_user}","gists_url":"https://api.github.com/users/josephclawrence/gists{/gist_id}","starred_url":"https://api.github.com/users/josephclawrence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephclawrence/subscriptions","organizations_url":"https://api.github.com/users/josephclawrence/orgs","repos_url":"https://api.github.com/users/josephclawrence/repos","events_url":"https://api.github.com/users/josephclawrence/events{/privacy}","received_events_url":"https://api.github.com/users/josephclawrence/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T12:15:22Z","updated_at":"2015-12-08T12:15:22Z","body":"Thanks for the reply Mikael.\n\nI have actually done very similar to you a few days ago and it's working\n100%. My original issue was specifically when using PhoneGap, which I still\nnever got to work, but now that I just compiled with Xcode rather, I just\ngave up on PhoneGap.\n\n\n\nOn Tue, Dec 8, 2015 at 1:03 PM, Mikael Kindborg <notifications@github.com>\nwrote:\n\n> @josephclawrence <https://github.com/josephclawrence> Sorry for long\n> response time!\n>\n> I did a test build that worked, it would be great if you have the time to\n> see if you can reproduce these steps.\n>\n> Build machine: OS X 10.10.5, Xcode 7.1.1, Cordova 5.4.1\n>\n> Phone: iOS 9.1 iPhone 4S\n>\n> First I upgraded Cordova:\n>\n> sudo npm update -g cordova\n>\n> Check Cordova version:\n>\n> cordova -v\n>\n> Create test project:\n>\n> cordova create bletest com.evothings.bletest BLETest\n>\n> Goto project folder:\n>\n> cd bletest/\n>\n> Add BLE plugin:\n>\n> cordova plugin add https://github.com/evothings/cordova-ble.git\n>\n> Add iOS platform:\n>\n> cordova platform add ios\n>\n> Next, I took the files in the example app \"BLE Scan\" that comes with\n> Evothings Studio Beta 2 download, and copied them to the \"www\" folder in\n> the Cordova project.\n>\n> The example app files and folders that should be copied to \"www\" are found\n> here:\n>\n> EvothingsStudio_Mac_64_2.0.0_beta2_151202\n>     examples\n>         ble-scan\n>             app.js\n>             index.html\n>             libs\n>             ui\n>\n> Then I built the app:\n>\n> cordova build ios\n>\n> And finally opened the resulting Xcode project and deployed the app to the\n> phone.\n>\n> This worked for me. Let me know if there ios something different with your\n> setup that might have caused the app to fail, missing JavaScript library\n> files or something else.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/evothings/cordova-ble/issues/82#issuecomment-162851016>\n> .\n>\n\n\n\n-- \nDirector\nClickshape (Pty) Ltd\nwww.clickshape.com\nTwitter <http://www.twitter.com/josephclawrence> | LinkedIn\n<http://www.linkedin.com/in/josephclawrence> | Website\n<http://www.clickshape.com>\n"}}