Hello!
I new this may sound extremely newbie but here is my question:
I have heard that Apple have some restrictions for apps in appstore (mainly Adobe Flash compiled apps), but to keep the question simple:
If I write my app in javascript will this be rejected from appstore for this reason? Do they allow only Objective C apps or Unity + Javascript is ok?
Thank you very much,
Have Fun!
unity does not offer javascript as per apples definition.
Their javascript is in relation to “webbrowser javascript”.
Unity does not offer that, it is a js alike syntax on top of .NET
I think the answer is yes, Unity + Javascript is ok:
“3.3.1 Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs. Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine, and only code written in C, C++, and Objective-C may compile and directly link against the Documented APIs (e.g., Applications that link to Documented APIs through an intermediary translation or compatibility layer or tool are prohibited).”
“3.3.1 Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs. Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine, and only code written in C, C++, and Objective-C may compile and directly link against the Documented APIs (e.g., Applications that link to Documented APIs through an intermediary translation or compatibility layer or tool are prohibited).”
I highlighted a bit more of that quote, and you’ll see the problem.
So… is Unity + Javascript ok or not…?
Does anybody have a clear answer ?
Tnx 
It’s not any more or less OK than Unity + C#. It’s exactly the same. Here is the relevant line again, please read it:
“JavaScript as executed by the iPhone OS WebKit engine”
–Eric
Heya gamezfactory,
Unfortunately there isn’t a clear answer on this subject. If you take a look at some of the other posts regarding this topic you’ll see many different opinions, but there’s not a 100% clear answer.
This post shows just the tip of the iceberg in regards to the depth of this discussion:
http://forum.unity3d.com/viewtopic.php?t=48795&start=3675
Best of luck 
Is any person here who has his game accepted in the appstore and the game was build using Unity + Javascript?
I guess this will make it a lil more clear.
Regards!
No it won’t make it any clearer cause it has not even to do anything with this at all as mentioned several times above by different personas.
Again: Unity has no javascript support.
Unity has an ECMA implementation normally refered to as Unityscript but officially called javascript.
It has not the least bit to do with the javascript as per 3.3.1
The thing thats meant in there is webbrowser javascript, something unity does not and never did support nor will it ever support it as unity does not run as part of a page, it compiles the stuff to .NET assemblies
Soo… basically if I use Unity and do all the scripting in Unityscript - “oficially called” Javascript nobody knows if is ok with Apple? That’s what I try to findout 
Tnx again!
Are you going to keep asking the same question over and over until you get a different answer? Because that’s not going to happen…the replies will always be the same. The mention of Javascript in 3.3.1 has nothing whatsoever to do with “Javascript” in Unity in any way, shape, or form. And it never will. Once again, 3.3.1 says “JavaScript as executed by the iPhone OS WebKit engine”. Does Unity run on the iPhone OS WebKit engine? No, it does not. It’s talking about Javascript (not Unityscript) running in a browser (not being translated into ARM code and run by the Unity engine).
–Eric
The ‘clear’ answer is that there is no clear answer.
Unity’s Javascript just happens (for obvious reasons) to share the same name as the WebKit Javascript, which IS allowed on the iPhone.
Unity’s Javascript (as far as anybody has determined) is EXACTLY as allowed as Unity’s C#, as they are both just .Net compiled to ARM code.
The question you should be asking is: ‘Is .Net compiled ARM code allowed on the iPhone?’
For that answer, check this thread out:
http://forum.unity3d.com/viewtopic.php?t=48795&postdays=0&postorder=asc&start=0
But I warn you, after 248 pages, there is no ‘clear’ answer. However, apps ARE being accepted since the new agreement, and are known to be created in Unity. But neither Apple or Unity has come forward announcing that Unity is 100% in compliance with the new TOS.