Difference between Xamarin.Forms and Native apps in 'MobleApps' tab

spanspan ✭✭USMember ✭✭

I am new to the Xamarin from Visual Studio. When I tried to create a cross platform application from ‘MobleApps’ tab, I saw Xamarin.Forms and native apps. What is the different between the these apps and when to choose these apps.

Answers

  • veeru3112veeru3112 ✭✭ INMember ✭✭

    Here are some points which explains the Xamarin Native advantages over Xamarin Forms app,

    1. UI Lagging: we are using XAML for creating UI in Xamarin forms, so the Xamarin Forms will compile and convert the code platform specific.

    2. Third Part Library support: Xamarin Native environment has verity of UI and third party components library, both iOS and Android, there are certain third-party libraries you get used to using, especially UI components that make life easier on your target platform (including some that we’ve created internally). Unfortunately, using these libraries on Xamarin is non-trivial. Even though Xamarin offers bindings for some of the more popular libraries, some developers would need to provide bindings for themselves, and this is not as easy as Xamarin makes it seem.

    3. Cache Management: Xamarin native having more strong mechanism to clear the cache, in android we have certain events / methods which clear the data when the device is running out of memory, in iOS the garbage collector will clear the data when it is not I use.

    4. Non-Portable .NET Libraries: Some of the third party component libraries will not support Xamarin Forms apps, it only supports native environment.

    5. As per my understanding Xamarin Forms apps are not good for large quantity of data and it is also not effective for frequent data update.

    6. Native environment is best for apps which have interaction with native behavior like as calls, Bluetooth, Wi-Fi etc.

    7. Prefer Xamarin Native environment where we required more custom UI elements like as, viewpager, expandable list etc.

  • TiagoFreitasLealTiagoFreitasLeal ✭✭ PTMember ✭✭

    Hi @veeru3112

    In your opinion is there a scenario where Xamarin.Forms is preferable over Native?

  • christopherpolskachristopherpolska ✭✭✭ PLUniversity ✭✭✭

    @TiagoFreitasLeal said:
    Hi @veeru3112

    In your opinion is there a scenario where Xamarin.Forms is preferable over Native?

    Simple apps, prototyping (you need a working app, not perfect, just to present and see how it feels - for example for a client).

  • veeru3112veeru3112 ✭✭ INMember ✭✭

    @TiagoFreitasLeal said:
    Hi @veeru3112

    In your opinion is there a scenario where Xamarin.Forms is preferable over Native?

    Yes sure if you have short time of development and want to build apps for multiple platforms then you can prefer Xamarin.Forms over native, it has a fast development cycle then the native. Here are some advantages of Xamarin.Forms over Native,

    • Development cycle is faster then native.
    • UI is created once and it will used across all the platforms
    • Code is shared across all the project.
Sign In or Register to comment.