Comments (5)
@Robbe92 can you please a look at this? (@chmiiller sorry for the delay)
from titaniumifier.
No problems, thanks for having a look at this.
We made some progress and it appears that loading modules from a function scope is the problem on Android and something in Titanium 8.x has changed with how modules are scoped and what kind of objects they can reference.
Here is what a colleague of mine found out so far:
Doing something like:
(function(bla) {
var tiws = require('net.iamyellow.tiws');
}());Leads to problems on Android, when loading native Titanium modules.
This is really weird, because in Node.js loading modules from function scopes work fine,
as well as on iOS/Titanium.I have managed to fix that problem by manually editing the ti-simple-xmpp.js file, take that require() statement line from the
function scope, and moving it to the top of the file, effectively putting it in the global scope.
With this modified version, the app starts properly and no longer crashes on startup.
It might be something to start with ¯_(ツ)_/¯
from titaniumifier.
Thanks Carlos,
very interesting bug and solution!
Did you open issue to axway?
from titaniumifier.
It is still not working, and I'm not sure if this is something that Axway can help me with but I've sent it all to an Axway developer, let's see if he has something to add to it later
from titaniumifier.
Update: Jan from Axway found out that the code from Titaniumifier produces require() with a second argument, true, which is causing the problem somehow. Here is what he's found so far:
https://jira.appcelerator.org/browse/TIMOB-27633
from titaniumifier.
Related Issues (20)
- Zipfile should have lower case names HOT 1
- option to minify output HOT 8
- Strip “use strict” from code (3.5.0.GA) HOT 9
- Zip module issue HOT 7
- NPM unable to install or build HOT 3
- The generated package.json has a "main" script that doesn't exist HOT 8
- Requiring alloy modules HOT 10
- Support for platform dependent files HOT 1
- Using of external modules HOT 8
- Refactor transforms HOT 1
- linking to submodules HOT 6
- Trying to titaniumifier AWS node sdk HOT 2
- Error building module throw e; ^ HOT 6
- nativeDependences if dependent module has different version for each platform HOT 10
- I cannot install it because of errors HOT 21
- Parse HOT 5
- Problem trying to titaniumifier sendemail HOT 1
- Uncaught SyntaxError HOT 1
- Support for newer node versions HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from titaniumifier.