7 Oct 2016

Viewer on Mobile using WebView [Xamarin]

Default blog image

Follow me @augustomaia

Here is a recurrent question: can I use Forge Viewer on my mobile app? 

And the direct answer is: Yes you can, use a WebView!

What about a sample? Here you have it! For this really quick demo I'm using Xamarin cross-platform approach. It's actually quite nice: write in C#, compile and deploy on iOS, Android and Windows phones.

Next I'll prepare a more complete sample (with other Forge APIs), but for now just would like to share this piece first. 

You'll need this for setting up iOS permissions:

<key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads </key>
        <true/>
    </dict>

 

Related Article