Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
1–10 of 67 posts
Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#2But the bridge between the webview and the Appcelerator code is painfully slow. I had it pinging over current location coordinates more than once per second- it worked fine in the simulator but utterly crippled the app when run on a device. For now all I can do minimize the number of calls I make, but that's hardly a great solution.
Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#3This is an awesome read. I've made an HTML5-based app (overview at http://taxono.my for the curious), but have been stuck using Appcelerator, because I need to use the hooks to run code in the background- AFAIK PhoneGap and the like do not have the ability to do this unless you make an Objective-C plugin. But the bridge between the webview and the Appcelerator code is painfully slow. I had it pinging over current loc…
Cool app by the way thanks for sharing... though I wish I could try it on my Android ;-)
Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#4This is an awesome read. I've made an HTML5-based app (overview at http://taxono.my for the curious), but have been stuck using Appcelerator, because I need to use the hooks to run code in the background- AFAIK PhoneGap and the like do not have the ability to do this unless you make an Objective-C plugin. But the bridge between the webview and the Appcelerator code is painfully slow. I had it pinging over current loc…
Thanks, we'll do comparisons against other native bridges in the future also. Cool app by the way thanks for sharing... though I wish I could try it on my Android ;-)
Rest assured, the Android version is on the way. In fact, this app-crippling native webview communication is what has taken up all my time and stopped me from developing the Android version.
Looking forward to the day you guys have a solution for background processing- the Appcelerator JS/native hybrid is a mess I'd love to see the back of.
Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#5Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#6Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#7Would be curious to know why Trigger didn't use the URL interception method in Android. Is that significantly slower?
Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#8Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#9Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#10Second, different is not always better. This will increase call performance, but will incur a (de)serialization penalty, limit parameter types (likely to scalars and read-only hashmaps), and make debugging more difficult. And beware of telling the OS that you implement this protocol, or you will have created an XSS attack vector on your native app.
Whenever you break new ground, don't fool yourself into thinking that you're the first person who has had an idea, and make sure that you sanity check your work.