• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by techshaman · Sep 12, 2012 at 02:40 PM · androidwwwsocket

Using WWW, says I need Pro for Socket Support

Hey guys I'm running into a big problem trying to test my app on my device. I am using WWW in my game (and as far as I can tell not using anyt$$anonymous$$ng socket related). I dropped some personal budget on the android basic license (says it fully supports WWW). But when I go to build the apk, I get an error saying I need unity pro for socket support! Any help or ideas?

T$$anonymous$$s is on unity 4 beta. Not sure if that matters.

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bunny83 · Sep 12, 2012 at 03:14 PM 0
Share

Well, it's hard to tell what's wrong. I don't think the WWW causes this problem but you can't be sure since you use the beta version.

Are you sure you don't have any socket libraries in your project? Keep in mind that if you have any code in your project that uses sockets is enough. You don't have to use it actively.

avatar image techshaman · Sep 12, 2012 at 03:34 PM 0
Share

I have 2 dlls I have included in my project. One is for MySQL (that is needed for the other to compile correctly it seems). Perhaps that is the problem? Is there any way for me to separate that out?

avatar image DaveA · Sep 12, 2012 at 10:23 PM 0
Share

Curious why you would be using www and have a local MySQL dll? Is it some sort of handy MySQL library for creating/parsing returns from WWW? If not, dump it.

avatar image Bunny83 · Sep 13, 2012 at 02:35 AM 0
Share

Yes, it is probably the problem. If it's a mysql connector (native or managed) it of course uses sockets ;)

avatar image techshaman · Sep 13, 2012 at 01:21 PM 0
Share

You guys were right! I spent some time extracting the pieces I need into its own library and gutted the MySQL dll. Works like a charm!

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Dreamora · Sep 16, 2012 at 12:55 PM

There is no bug in t$$anonymous$$s case. Prior to Unity 4 the Unity Android side had the major bug of not correctly handling the Android vs Android Pro feature delta as .NET Sockets ALWAYS were a Pro only feature on mobile.

Since Unity 4 beta UT finally fixed t$$anonymous$$s bug.

The only networking you have on android without Android Pro and without going to java plugins is WWW and Unity Networking I fear.

And yes DB libraries for DB technologies that are not embedded databases (SQLite, Seqoia, DBLinq) are always relying on .NET sockets to establish their connection as .NET sockets are the way to handle network communication on .NET.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image thienhaflash · Apr 16, 2013 at 08:45 AM 0
Share

So Dreamora, can you confirm that socket connection works correctly in Unity4 Android Pro and not Basic ? I tried to find a sample for that but not yet found, can you help ?

avatar image Dreamora · Apr 16, 2013 at 09:43 AM 0
Share

While this has nothing to do with the question (UnityEngine.WWW works on any license and any platform), yes I can confirm that. if you go to the store page and look at the license comparision posted there, you will see that since Unity 3.0, iOS Pro / Android Pro were required to make use of sockets (System.Net tcp and udp sockets on which 3rd party networkings rely)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

13 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Mono.Data.tds assembly requiring System.Net.Socket 1 Answer

Sending to API special french characters 0 Answers

Help for Downloading Picture from İnternet for Android 0 Answers

Unable to stream online video on android 1 Answer

Does WWW works on android emulator 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges