I am currently developing an application that retrieves data from a server at a specific interval. I understand that this is not the most efficient way, since it will often poll the server without receiving any new data.
The solution for this would be to use C2DM, and I'm currently learning how to install it. However, about 7% of my users are still running Android 2.1, and I do not want to exclude them from my application.
I decided that I could check which version of Android was working, and then decide whether to use C2DM or polling (with code for both in the same apk). However, in order to run the C2DM code, I will need to specify certain permissions in my manifest, and I worry that with these permissions Android Android 2.1 users will not be able to download my apk file.
So my question is, how right am I in my assumption that 2.1 users will not be able to download the application with C2DM permissions and how to get around it if that is the case. Should I create two different apk files and update them separately with each (other) update I make in an application that is not limited to older versions of Android?
Thank.