Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue #125 - push notifications do not always work #418

Closed
wants to merge 1 commit into from

Conversation

ShaiBer
Copy link

@ShaiBer ShaiBer commented May 15, 2014

Problem is that the code which sends the request to the GCM is inside an AsyncTask and since Froyo tasks are run serially, so if another task starts before it and doesn't finish it doesn't run.
The fix is to use the new API of executeOnExecutor which runs the task in parallel to other tasks.

Problem is that the code which sends the request to the GCM is inside an AsyncTask and since Froyo tasks are run serially, so if another task starts before it and doesn't finish it doesn't run.
The fix is to use the new API of executeOnExecutor which runs the task in parallel to other tasks.
DrKLO pushed a commit that referenced this pull request May 16, 2014
@DrKLO
Copy link
Owner

DrKLO commented May 16, 2014

thanks, in 5ebe60a

@DrKLO DrKLO closed this May 16, 2014
@ShaiBer
Copy link
Author

ShaiBer commented May 17, 2014

Cool, but I see that you don't check that the API version >= 11 before using the new api. Didn't it give you a compilation error that this is a new api (I see that the minimum SDK version is still 8)?

@DrKLO
Copy link
Owner

DrKLO commented May 17, 2014

@ShaiBer didn't notice that, fixed. It's not give compilation error, but it will crash on 2.x devices.

hav3n pushed a commit to hav3n/Telegram that referenced this pull request Jun 18, 2014
panahit pushed a commit to panahit/Telegramma that referenced this pull request Mar 10, 2016
hrzhu pushed a commit to hrzhu/Telegram that referenced this pull request Jul 11, 2017
nekohasekai pushed a commit to NekogramX-Backup/NekoX that referenced this pull request Mar 26, 2020
… bug fixes

DrKLO/Telegram#418

Former-commit-id: a1a639fc8503d6aa51896dfb4912072ad12ae678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants