Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Protocol buffers in PhoneGap - iOS

I have used the c++ google protobuf classes in iOS using the native app approach, i.e. using Xcode, objective c, cocoa etc.

Now, I want to migrate to hybrid apps and I have explored the options on web, and according to my requirements i'm down to PhoneGap and Titanium. That will require me to use JavaScirpt, HTML5 (JavaScript only in Titanium as per my understanding) jQuery etc.

My question is, HOW am i supposed to access the my c++ protobuf classes from javascript. (i have no expertise in JavaScript).

I am also open to opinions on which hybrid-app framework to use.

Lords of web-dev....guide me.

like image 218
Tushar Koul Avatar asked Jun 15 '26 00:06

Tushar Koul


1 Answers

With PhoneGap, if there is a phone feature that the PhoneGap APIs do not currently expose, or if you have some specialised native algorithm / function that you wish to access, then you need to write a plugin.

PhoneGap plugins provide a standardised mechanism for packing native code and accessing its functionality via JavaScript. See the PhoneGap Plugin Development Guide.

Personally I think PhoneGap is the best hybrid framework, it had been around for a while, is well documented, and has a healthy community.

like image 63
ColinE Avatar answered Jun 17 '26 23:06

ColinE



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!