-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi,
I have a HTML5 app which uses the Javascript SDK, it works fine when I run it in a web browser. I want to wrap it in a webview using Titanium so that I can package it for Android.
When I run this HTML5 app inside of a webview in Titanium, I get the following error when running any sdk.sendRequest(), and it doesn't retrieve info from the ACS cloud:
[INFO][TiWebChromeClient.console( 390)] (main) [2796,30865] TypeError: Result of expression 'Titanium.Network' [undefined] is not an object. (1:http://sdk.cocoafish.com/js/cocoafish-1.2.min.js)
The code in Titanium's app.js is very simple:
var win = Ti.UI.createWindow({
fullscreen:false,
navBarHidden:true,
});
var webview = Ti.UI.createWebView({
url: 'login.html',
navBarHidden:true,
fullscreen:true
});
win.add(webview);
win.open();
And login.html is very simple, it creates a new Cocoafish object with the app's key, then it uses sendRequest for login. It works well in all desktop web browsers.
Metadata
Metadata
Assignees
Labels
No labels