3 ms·
Kind of sad the state PhoneGap push support is in. I checked the links and they have an if else for two completely different code branches for Android or iOS an
by lnanek2 12y ago
Kind of sad the state PhoneGap push support is in. I checked the links and they have an if else for two completely different code branches for Android or iOS and don't support anything else:
http://www.practicalguidetomobileapps.com/resources/book/full_app/device_readyjs.html http://www.practicalguidetomobileapps.com/resources/book/ful...
Ideally you would support more platforms and not have to make any distinction in the JavaScript and could have a single code path. Right now I pay Pushwhoosh a hefty fee per month for exactly that.
I hate working with closed source stuff that I can't bug fix and improve myself. Just the current state as evidenced by this guide is so far behind commercial offerings it would take months just to get it even comparable.
- nicholasreed 12y agoI totally agree with the sentiment, and iOS/Android support only is unfortunate at the moment. It's only getting better though, and in a few months the improvements in Famo.us/PhoneGap will be impressive. (un)Fortunately, I've wasted the hours of getting the payload/etc support working pretty seamlessly, so handling incoming Push's is all done in one place: https://github.com/nicholasareed/internal_app/blob/master/src/lib2/utils.js#L840 https://github.com/nicholasareed/internal_app/blob/master/sr...