Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 iamneeju · Jan 23, 2017 at 12:52 PM · internet

Android app not accessing internet... how to fix it?

I developed an android app and try to connect with google play games. But the game not accessing the internet. I already set INTERNET ACCESS as REQUIRE in player settings. still same issue. @Landern @Berenger

Comment
Add comment
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

6 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by Bilelmnasser · Jan 24, 2017 at 08:38 AM

add this line

  <uses-permission android:name="android.permission.INTERNET" />
 

to your manifest file, if you don't have create one under Assests/Plugins/Android/

 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.company.product">
   <application android:icon="@drawable/app_icon" android:label="@string/app_name">
     <activity android:name=".OverrideExampleNative"
              android:label="@string/app_name"
              android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
   <meta-data android:name="android.app.lib_name" android:value="unity" />
   <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
         <intent-filter>
             <action android:name="android.intent.action.MAIN" />
             <category android:name="android.intent.category.LAUNCHER" />
         </intent-filter>
     </activity>
 <uses-permission android:name="android.permission.INTERNET" />
 
   </application>
 </manifest> 


EDIT : what you can do is simple for this Kind Of Problems : go to check the Logs from your android app, after you built your App run it on an android Phone and connect the phone to your Computer with USB Cable.

  1. open Terminal go under your android SDK Folder

  2. go to your Android SDK Folder (VIA command cd )

  3. go under platform-tools Folder (VIA command cd )

  4. Tape this command(make sure phone is usb connected And Usb Drivers are installed And PC is rebooted and drivers are OK) adb logcat -s Unity

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 iamneeju · Jan 24, 2017 at 11:58 AM 0
Share

manifest file edited and I tried but the same issue is there. @Bilelmnasser

avatar image Bilelmnasser · Feb 03, 2017 at 10:57 AM 0
Share

what you can do is simple : go to check the Logs from your android app, after you built your App run it on an android Phone and connect the phone to your Computer with USB Cable.

  1. open Ter$$anonymous$$al go under your android

  2. go to your Android SD$$anonymous$$ Folder (VIA command cd )

  3. go under platform-tools Folder (VIA command cd )

  4. Tape this command(make sure phone is usb connected And Usb Drivers are installed And PC is rebooted and drivers are O$$anonymous$$) adb logcat -s Unity

avatar image
3

Answer by yellowyareth · Sep 07, 2020 at 08:25 PM

hello, everything works on the pc, online connections and everything but when i build for android it wont connect to server

Comment
Add comment · 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
0

Answer by vlakdo · Jun 28, 2018 at 08:18 PM

Hello, did you solve the problem?

Comment
Add comment · 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
0

Answer by deba124 · Oct 26, 2019 at 08:36 AM

Dont change anything, there is no need to change the manifest.

JUST USE : "https://" instead of "http://" in url.

thats it, Enjoy

Comment
Add comment · Show 1 · 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 khanhabib · Jun 14, 2021 at 11:39 AM 0
Share

not wokring

avatar image
0

Answer by ArendAethon · Apr 19, 2020 at 06:09 AM

@iamneeju Hey! I think you was using http instead of https. I have the same prolem. Did you solve it? :)

Comment
Add comment · 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
  • 1
  • 2
  • ›

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.

Follow this Question

Answers Answers and Comments

11 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

Related Questions

How do you get internet Multiplayer? 1 Answer

How do I make my game multiplayer using bluetooth? 0 Answers

Internet Dies After Scene Change, How To Fix? 0 Answers

How to get connected wifi BSSID ? 1 Answer

Visualizar os dados da rede (UnityWebRequest) - View network data 0 Answers


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