- Home /
difference betwwen ios and android
I hope i'm not asking a question that has been asked many times before.
I'm making a game for mobile,ios and android.So my question is that when scripting and designing my game what differences are there between ios and android?
I know that for ios deployement i'll need a mac but to develop the game,i could do that from windows,right?So would it be the same both for ios and android apart from that deployment part?
Thanks you so much everybody.I'm in love with unity's ease of use.I've been struggling with many other engines before co$$anonymous$$g to unity.And i'm sure now more than ever that my game will be a dream come true. Cheers :)
let us know what you created when its finished, and good luck ;)
Answer by amphoterik · Jul 18, 2013 at 03:51 PM
Apart from some physical device differences (such as multi-touch) and deployment / testing, development is exactly the same. More information can be found here:
So this means that i'll write the same code for both ios and android?there api for ios and android is the same?
That is correct. Unity handles all of the device specific communication. You get to focus on the game. Now, I am not saying there aren't SO$$anonymous$$E differences, but those tend to be very deep in the code and will hardly ever surface.
@hasnain2663 Please don't post comments as answers. On a happier note, yes the api is the same and quite well streamlined today. :)
Answer by InfiniBuzz · Jul 18, 2013 at 04:05 PM
One big thing that cause me some troubles this and the last week is that iOS is AOT (Ahead of time) compiled platform while android devices use JIT (just in time) compiled code.
This can cause problems with: Interfaces, delegates and events, generic datatypes and serialization and probably a few others.
So if you are likely to use interfaces and events, lists (iterate over them) and so on take care that its aot-safe!
It is possible that you will run into problems on iOS while your code runs well on other platforms. Don't be afraid there are workarounds but sometimes tricky to find the actual cause of crashes and things.
And if you are lucky you will never experience such problems ;) as @save and @amphoterik said it's well optimized already and you won't really need to care about while coding but it still has some "special cases" .
Good luck