{"id":318,"date":"2018-07-02T13:34:02","date_gmt":"2018-07-02T05:34:02","guid":{"rendered":"https:\/\/sinofool.net\/blog\/?p=318"},"modified":"2018-07-02T13:34:02","modified_gmt":"2018-07-02T05:34:02","slug":"my-cross-platform-development-practices","status":"publish","type":"post","link":"https:\/\/sinofool.net\/blog\/archives\/318","title":{"rendered":"My cross-platform development practices"},"content":{"rendered":"<p>I have learned how to develop apps for mobile platform since 2013. It was a very different area for a back-end engineer start working on client.<br \/>\nAlmost all projects I worked need cross platform, at least iOS + Android.<\/p>\n<p>After trying 5 different cross platform solutions, I decided to use native platform for my new project now.<br \/>\nThe shortage of these solutions are more than the convenience it brings.<\/p>\n<ol>\n<li>Apache Cordova<br \/>\nDetails feel not like real native app. Feature pass.<\/li>\n<li>C++ Manually build library use ObjC link and JNI load it.<br \/>\nIt works perfect, but it&#8217;s too complex to keep C++ and ObjC and JNI at the same time.<\/li>\n<li>Xamarin Forms<br \/>\nGood for CMS like app, if you don&#8217;t care the details for different platforms. Cross platform interface design is a wrong direction for most of my projects.<\/li>\n<li>Xamarin Native<br \/>\nFor now, I think this is the best cross platform solution. C# is also better language than Java.<\/li>\n<li>Native for each platform, use OpenAPI generate server stub.<br \/>\nThe most shared logic I wrote with other 4 solutions are client\/server RPC. OpenAPI\/Swagger solved this natively.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>I have learned how to develop apps for mobile platform since 2013. It was a very different area for a back-end engineer start working on client. Almost all projects I worked need cross platform, at least iOS + Android. After trying 5 different cross platform solutions, I decided to use native platform for my new [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-318","post","type-post","status-publish","format-standard","hentry","category-tech"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/posts\/318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/comments?post=318"}],"version-history":[{"count":2,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/posts\/318\/revisions"}],"predecessor-version":[{"id":334,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/posts\/318\/revisions\/334"}],"wp:attachment":[{"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/media?parent=318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/categories?post=318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sinofool.net\/blog\/wp-json\/wp\/v2\/tags?post=318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}