- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey,
I'm trying to debug my application on Android device, but I'm getting the following error,
I search the web, but didn't find any leads on this.
my app is very simple, I have only index.html file that look similar to this
<script type="application/javascript"> document.addEventListener('deviceready', onDeviceReady); function onDeviceReady() { StatusBar.overlaysWebView(false); StatusBar.styleDefault(); cordova.plugins.backgroundMode.enable(); window.location = "https://****.com/"; } </script>
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try using the Debug tab, it will give you a better view of what a real app would do. It looks like you are trying to do this inside of App Preview (using the test tab).
BTW -- loading a web page as your "app" is generally frowned upon by most end users, it results in lots of low ratings and is typically rejected by the Apple iOS store. Your app should be a standalone entity that does not require network access to start the UI, if your user's device does not have a network connection, or that network connection is bad, the app you've created will appear to have hung when it does the window.load() operation. In the case of a Cordova app you are using HTML5 to create a client-only application, you are not creating a web site.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page