{"action":"created","issue":{"url":"https://api.github.com/repos/Red-Folder/bgs-core/issues/18","labels_url":"https://api.github.com/repos/Red-Folder/bgs-core/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/Red-Folder/bgs-core/issues/18/comments","events_url":"https://api.github.com/repos/Red-Folder/bgs-core/issues/18/events","html_url":"https://github.com/Red-Folder/bgs-core/issues/18","id":46743573,"number":18,"title":"Dosen't work on Android 5.0","user":{"login":"apollon0815","id":1536459,"avatar_url":"https://avatars.githubusercontent.com/u/1536459?v=3","gravatar_id":"","url":"https://api.github.com/users/apollon0815","html_url":"https://github.com/apollon0815","followers_url":"https://api.github.com/users/apollon0815/followers","following_url":"https://api.github.com/users/apollon0815/following{/other_user}","gists_url":"https://api.github.com/users/apollon0815/gists{/gist_id}","starred_url":"https://api.github.com/users/apollon0815/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apollon0815/subscriptions","organizations_url":"https://api.github.com/users/apollon0815/orgs","repos_url":"https://api.github.com/users/apollon0815/repos","events_url":"https://api.github.com/users/apollon0815/events{/privacy}","received_events_url":"https://api.github.com/users/apollon0815/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Red-Folder/bgs-core/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"Red-Folder","id":2298738,"avatar_url":"https://avatars.githubusercontent.com/u/2298738?v=3","gravatar_id":"","url":"https://api.github.com/users/Red-Folder","html_url":"https://github.com/Red-Folder","followers_url":"https://api.github.com/users/Red-Folder/followers","following_url":"https://api.github.com/users/Red-Folder/following{/other_user}","gists_url":"https://api.github.com/users/Red-Folder/gists{/gist_id}","starred_url":"https://api.github.com/users/Red-Folder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Red-Folder/subscriptions","organizations_url":"https://api.github.com/users/Red-Folder/orgs","repos_url":"https://api.github.com/users/Red-Folder/repos","events_url":"https://api.github.com/users/Red-Folder/events{/privacy}","received_events_url":"https://api.github.com/users/Red-Folder/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Red-Folder/bgs-core/milestones/1","html_url":"https://github.com/Red-Folder/bgs-core/milestones/March%202015","labels_url":"https://api.github.com/repos/Red-Folder/bgs-core/milestones/1/labels","id":1016664,"number":1,"title":"March 2015","description":null,"creator":{"login":"Red-Folder","id":2298738,"avatar_url":"https://avatars.githubusercontent.com/u/2298738?v=3","gravatar_id":"","url":"https://api.github.com/users/Red-Folder","html_url":"https://github.com/Red-Folder","followers_url":"https://api.github.com/users/Red-Folder/followers","following_url":"https://api.github.com/users/Red-Folder/following{/other_user}","gists_url":"https://api.github.com/users/Red-Folder/gists{/gist_id}","starred_url":"https://api.github.com/users/Red-Folder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Red-Folder/subscriptions","organizations_url":"https://api.github.com/users/Red-Folder/orgs","repos_url":"https://api.github.com/users/Red-Folder/repos","events_url":"https://api.github.com/users/Red-Folder/events{/privacy}","received_events_url":"https://api.github.com/users/Red-Folder/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-03-11T15:29:36Z","updated_at":"2015-03-11T15:29:36Z","due_on":null,"closed_at":null},"comments":24,"created_at":"2014-10-24T14:22:06Z","updated_at":"2015-03-12T20:03:19Z","closed_at":null,"body":"Hello,\r\n\r\nthank you for this wonderful plugin. \r\n\r\nIt works very well on Android 4.4 and lower. \r\nBut when I test it with Eclipse and Android 5 SDK on an Android 5.0 emulator, background service not starting.\r\n\r\nI hope you can fix it.\r\n\r\nThank you very much.\r\n\r\nLog:\r\n\r\n10-24 14:46:58.119: D/BackgroundServicePluginLogic(1206): Start of Execute\r\n10-24 14:46:58.120: D/BackgroundServicePluginLogic(1206): Withing try block\r\n10-24 14:46:58.122: D/BackgroundServicePluginLogic(1206): Finding servicename com.domain.demoapp.MyService\r\n10-24 14:46:58.122: D/BackgroundServicePluginLogic(1206): Services contain 0 records\r\n10-24 14:46:58.123: D/BackgroundServicePluginLogic(1206): Creating new Service Details\r\n10-24 14:46:58.132: W/PluginManager(1206): THREAD WARNING: exec() call to BackgroundServicePlugin.getStatus blocked the main thread for 231ms. Plugin should use CordovaInterface.getThreadPool().\r\n10-24 14:47:00.176: W/PluginManager(1206): THREAD WARNING: exec() call to File.getFile blocked the main thread for 264ms. Plugin should use CordovaInterface.getThreadPool().\r\n10-24 14:47:03.076: D/BackgroundServicePluginLogic(1206): Action = getStatus\r\n10-24 14:47:03.211: D/BackgroundServicePlugin(1206): logicResult = com.red_folder.phonegap.plugin.backgroundservice.BackgroundServicePluginLogic$ExecuteResult@389df6c2\r\n10-24 14:47:03.251: D/BackgroundServicePlugin(1206): Start of transformResult\r\n10-24 14:47:03.266: D/BackgroundServicePlugin(1206): Status is OK\r\n10-24 14:47:03.267: D/BackgroundServicePlugin(1206): We have data\r\n10-24 14:47:03.269: D/BackgroundServicePlugin(1206): End of transformResult\r\n10-24 14:47:03.270: D/BackgroundServicePlugin(1206): pluginResult = org.apache.cordova.PluginResult@187d5cd3\r\n10-24 14:47:03.272: D/BackgroundServicePlugin(1206): pluginResult.getMessage() = {\"Success\":true,\"ErrorCode\":0,\"ErrorMessage\":\"\",\"ServiceRunning\":false,\"RegisteredForBootStart\":false,\"RegisteredForUpdates\":false}\r\n10-24 14:47:03.272: D/BackgroundServicePlugin(1206): Dont keep Callback\r\n10-24 14:47:04.200: D/BackgroundServicePluginLogic(1206): Start of Execute\r\n10-24 14:47:04.201: D/BackgroundServicePluginLogic(1206): Withing try block\r\n10-24 14:47:04.202: D/BackgroundServicePluginLogic(1206): Finding servicename com.domain.demoapp.MyService\r\n10-24 14:47:04.366: D/BackgroundServicePluginLogic(1206): Services contain 1 records\r\n10-24 14:47:04.367: D/BackgroundServicePluginLogic(1206): Found existing Service Details\r\n10-24 14:47:04.368: D/BackgroundServicePluginLogic(1206): Action = startService\r\n10-24 14:47:04.368: D/ServiceDetails(1206): Starting startService\r\n10-24 14:47:04.368: D/ServiceDetails(1206): Attempting to bind to Service\r\n10-24 14:47:04.369: D/ServiceDetails(1206): Starting bindToService\r\n10-24 14:47:04.427: D/ServiceDetails(1206): Attempting to start service\r\n10-24 14:47:04.632: D/ServiceDetails(1206): bindToService failed\r\n10-24 14:47:04.632: D/ServiceDetails(1206): java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.domain.demoapp.MyService }\r\n10-24 14:47:04.632: D/ServiceDetails(1206): \tat android.app.ContextImpl.validateServiceIntent(ContextImpl.java:1674)\r\n10-24 14:47:04.632: D/ServiceDetails(1206): \tat android.app.ContextImpl.startServiceCommon(ContextImpl.java:1703)\r\n10-24 14:47:04.632: D/ServiceDetails(1206): \tat android.app.ContextImpl.startService(ContextImpl.java:1687)\r\n10-24 14:47:04.632: D/ServiceDetails(1206): \tat android.content.ContextWrapper.startService(ContextWrapper.java:515)\r\n10-24 14:47:04.632: D/ServiceDetails(1206): \tat com.red_folder.phonegap.plugin.backgroundservice.BackgroundServicePluginLogic$ServiceDetails.bindToService(BackgroundServicePluginLogic.java:604)\r\n10-24 14:47:04.632: D/ServiceDetails(1206): \tat com.red_folder.phonegap.plugin.backgroundservice.BackgroundServicePluginLogic$ServiceDetails.startService(BackgroundServicePluginLogic.java:335)\r\n10-24 14:47:04.632: D/ServiceDetails(1206): \tat com.red_folder.phonegap.plugin.backgroundservice.BackgroundServicePluginLogic.execute(BackgroundServicePluginLogic.java:188)\r\n10-24 14:47:04.632: D/ServiceDetails(1206): \tat com.red_folder.phonegap.plugin.backgroundservice.BackgroundServicePlugin$1.run(BackgroundServicePlugin.java:68)\r\n10-24 14:47:04.632: D/ServiceDetails(1206): \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\n10-24 14:47:04.632: D/ServiceDetails(1206): \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\n10-24 14:47:04.632: D/ServiceDetails(1206): \tat java.lang.Thread.run(Thread.java:818)\r\n10-24 14:47:04.653: D/ServiceDetails(1206): Finished bindToService\r\n10-24 14:47:04.654: D/ServiceDetails(1206): Bind Failed\r\n10-24 14:47:04.655: D/ServiceDetails(1206): Finished startService\r\n10-24 14:47:04.656: D/BackgroundServicePlugin(1206): logicResult = com.red_folder.phonegap.plugin.backgroundservice.BackgroundServicePluginLogic$ExecuteResult@3ddb0010\r\n10-24 14:47:04.656: D/BackgroundServicePlugin(1206): Start of transformResult\r\n10-24 14:47:04.656: D/BackgroundServicePlugin(1206): Status is ERROR\r\n10-24 14:47:04.657: D/BackgroundServicePlugin(1206): We have data\r\n10-24 14:47:04.657: D/BackgroundServicePlugin(1206): End of transformResult\r\n10-24 14:47:04.657: D/BackgroundServicePlugin(1206): pluginResult = org.apache.cordova.PluginResult@2ca41709\r\n10-24 14:47:04.658: D/BackgroundServicePlugin(1206): pluginResult.getMessage() = {\"Success\":false,\"ErrorCode\":-4,\"ErrorMessage\":\"Plugin unable to bind to background service\",\"ServiceRunning\":false,\"RegisteredForBootStart\":false,\"RegisteredForUpdates\":false}\r\n10-24 14:47:04.658: D/BackgroundServicePlugin(1206): Dont keep Callback\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Red-Folder/bgs-core/issues/comments/78593598","html_url":"https://github.com/Red-Folder/bgs-core/issues/18#issuecomment-78593598","issue_url":"https://api.github.com/repos/Red-Folder/bgs-core/issues/18","id":78593598,"user":{"login":"Red-Folder","id":2298738,"avatar_url":"https://avatars.githubusercontent.com/u/2298738?v=3","gravatar_id":"","url":"https://api.github.com/users/Red-Folder","html_url":"https://github.com/Red-Folder","followers_url":"https://api.github.com/users/Red-Folder/followers","following_url":"https://api.github.com/users/Red-Folder/following{/other_user}","gists_url":"https://api.github.com/users/Red-Folder/gists{/gist_id}","starred_url":"https://api.github.com/users/Red-Folder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Red-Folder/subscriptions","organizations_url":"https://api.github.com/users/Red-Folder/orgs","repos_url":"https://api.github.com/users/Red-Folder/repos","events_url":"https://api.github.com/users/Red-Folder/events{/privacy}","received_events_url":"https://api.github.com/users/Red-Folder/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T20:03:19Z","updated_at":"2015-03-12T20:03:19Z","body":"Finally I can replicate this\r\n\r\nNeeded build against V21 (app & cordovalib) and run against V21 emulator.\r\n\r\nNow to fix it"}}