I am currently developing an app which pulls data from a server at a certain interval. I realize that this isn't the most efficient way since it will often poll the server without retrieving any new data.
The solution for this would be to use C2DM, and I am currently researching how to set this up. However about 7% of my users are still running Android 2.1, and I don't want to exclude them from my app.
I figured I can check which version of android the users are running, and then decide whether to use C2DM or polling (having code for both in the same apk). However, in order to run the C2DM code I will need to specify using certain permissions in my manifest, and I'm worried that with these permissions android 2.1 users won't be able to download my apk file.
So my question is if I am correct in my assumption that 2.1 users won't be able to download an app with C2DM permissions, and how to work around it if so. Will I have to create two different apk files and update them separately with every (other) update I make to the app that isn't restricted on older android versions?
Thanks ahead.