The software is strictly “use at your own risk.” Despite efforts to write good and useful code there may be bugs that cause unexpected and undesirable behavior. The Tableau Developer Community is also a great resource if you need help.Ī standard disclaimer: mobile-app-bootstrap is made available AS-IS with no support and no warranty whatsoever. If you have problems getting it to work, feel free to email us with questions, but we can't promise quick responses. You should not expect that there are 0 bugs. It's a tool for learning how to embed vizzes inside a mobile application. What does that mean? We didn't have a QA team test it. This collection is supported by the community and not officially 'blessed' by Tableau Engineering or Support. In this sample, Sign In happen inside the same viz as the WebView.this might need to be broken out in a separate WebView that only processes Sign In.Īnything else you'd like to see? Please get in touch with us through the Tableau Developer Community! Sadly, the sample code doesn't yet implement this. WebView has EvaluateJavascript for passing this in. tb-login ' document.getElementsByTagName('head').appendChild(styleNode) " "var styleNode = document.createElement('style') styleNode.type = 'text/css' styleNode.innerHTML = '. There's a way to inject some CSS into the WebView to make things lok nicer, via some JavaScript: The Sign In experience on a phone is, charitably: nonoptimal. That value is in minutes, and affects all clients: Web, Desktop, and Mobile. So while it will keep the user signed in between app runs and device reboots, it will timeout based on Tableau Server's setting. Unfortunately it doesn't yet perform re-authentication. Tapping a link in one of these WebViews will follow the link.but there isn't a Back button included with this sample.Ĭonnected Clients are implemented, via a simple Token Manager. This code is strictly an early look, and is sadly far from complete. Consider including the URL query parameters in the sample URLs, described in more detail in comments in Viz1ViewController.m. Viz1ViewController.m, Viz2ViewController.m, Viz3ViewController.mĬhange the viz URLs to point to your own visualizations. Once this sample app is farther along (see Limitations, below), the modifications to the Connected Clients library will be submitted to its repo. Tableau Connected Clients are used, with a modified version of the Connected Clients library. The Home WebView opens a local web page bundled in the app, while the other 3 WebViews open visualizations hosted on Tableau Public. The UIViewControllers are separated into their own classes in this sample. The app is meant to be as simple as possible: a UITabBarController with 4 UIViewControllers, each containing a WKWebView. This starts to get into app distribution, and Apple has extensive documentation with both a Quick Start and a more detailed guide. Within the project info, click the Mobile App Bootstrap target, choose the General tab, and set a Team in the Signing section. From the Xcode project navigator, click the Mobile App Bootstrap project. In order to run on a physical device, you'll need to adjust the Team signing profile in the Xcode project. This should run the app in a simulator, depending on the scheme set in Xcode. Open Mobile App Bootstrap.xcodeproj in Xcode.Download the code for the app from this repository.This objective-c version of the Mobile App Bootstrap only supports iOS. Provides an early look at example code for how to embed Tableau vizzes inside of a native iOS app. Mobile App Bootstrap: Objective-C preview
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |