[AC-3380] TiAnalytics interrupts foreground service on Android
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2016-03-21T07:04:05.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Tomasz Krzywda |
Assignee | Shak Hossain |
Created | 2016-03-16T11:29:03.000+0000 |
Updated | 2016-03-21T07:04:05.000+0000 |
Description
Steps to Reproduce
- Create foreground service in module (with location listener for example) and with some periodical log to console
- build and deploy module to app
- Start service from application
- Leave app and swype off the application drawer, to kill it
- Wait about 2-3 mins
Actual Result
Foreground service is interrupted, icon is back, but nothing else (if you have that location listener it won't be called anymore). If you have some logging done from service you can see, that last log is from TiAnalytics - service stopped. When you click foreground service's icon it will attempt to run app, but Android will prompt you, that it is not responding and if you want to shut it down. There is no log from foreground service that it's onDestroy() was called. App propably crashes silently.
Expected Result
The foreground service should run uninterrupted. Even with analytics enabled.
Comments
JSON Source
Hello, Thanks for sharing your concern, It will be much helpful to follow the steps if you provide a provide a simple reproducible test code for regenerating the issue you mentioned. As you have mentioned the test procedures, it's always better to provide sample code for clear understanding of the problem which leads to faster support. Please provide a sample code including the module. We will test it in our environment and let you know. Regards, Sharif