Internet Access is always set to required in unity android player settings - unity3d

I am using unity 2019.4.2f1, I want to remove the internet access permission from the final android manifest file created by unity but, because this option is locked I am not able to remove the permission.
Let me know if there is any-workaround to do so or enable this option somehow.
I saw the there is some performance reporting service is enabled, although I am not using analytics at all only thing I am using is unity collab.

The problem is that if you are using any of the Unity scripting APIs that are intended to be used to access network (even if you are using them for opening local files) Unity will add internet permission. Finally open "WIndow -> Package Manager" and check the packages that are included in your project. Some of the packages (such as ads or analytics) might be included by default, even if you have not included them yourself. Removing such packages would get rid of the permission.

In services window, go to cloud diagnostics and disable the crash report. It worked for me and i hope it will work for you too.

Related

Flutter: Building with plugins requires symlink support

I am getting the below error in log whenever I try to install any dependency in pubspec.yaml
Building with plugins requires symlink support.
Please enable Developer Mode in your system settings. Run
start ms-settings:developers
to open settings.
exit code 1
In lib folder, there is file named generated_plugin_registrant.dart which is also showing error, might be linked to above log error.
//
// Generated file. Do not edit.
//
// ignore_for_file: lines_longer_than_80_chars
import 'package:firebase_core_web/firebase_core_web.dart';
import 'package:printing/src/printing_web.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
// ignore: public_member_api_docs
void registerPlugins(Registrar registrar) {
FirebaseCoreWeb.registerWith(registrar);
PrintingPlugin.registerWith(registrar);
registrar.registerMessageHandler();
}
This worked for me:
on Windows 11 go to settings:
Click on Privacy & Security and after, click on for developers option.
On for developers settings, activate the Developer mode option (Install apps from any source...).
Now try to run/build your flutter application with flutter run -d windows or flutter build windows command.
Hey I was having the same problem I just activate the development settings and run again it works for me use the command :
start ms-settings:developers
Installation of some plugins required special allowance.
This requires permission for windows which is available in For Developer.
It is much like Install from unknown source type permission.
How to allow permission:
Search Developer Settings in the start menu and open it. Under developer mode click on Install apps from any source, including loose file.
Run pub-get again and you are good to go.
I'm not sure, how relevant is my answer. I got the same error, but the problem is as follows.
I accidentally change the device to 'Windows machine' instead of my mobile in VS Code.
If you really want to run apps on Windows platform, you can choose other options.
Go to Windows settings. Select Update & Security. On that, select For Developers. In that window, there is an option called Install apps from any source, including loose files on the Developer Mode. Enable that option.
If you feel uncomfortable turning on Developer Mode to allow side loaded apps and you aren't targeting Windows OS, you can avoid doing flutter pub add package_name. Instead, clear out the old package with dart pub remove package_name manually edit your pubspec.yaml with the dependency and do a flutter pub get.
This happens when you are running on flutter 3.0 and above;
The error only occurs when your selected device is Windows OS.
If your are not developing a windows application, you can just change your selected device to your android emulator or your physical mobile phone.
If you are developing a windows application then you need to turn ON developers option on your windows device to allow debugging.
For Windows 10 Go to cmd add this command > start ms-settings:developers
it will appear Settings Window
allow developer mode Allow developer mode
directly go to search of window and search
developer settings
and you will see the
developer mode and make it yes.
First, run the command line interface with run administrator
and then run this command
start ms-settings:developers
pop will come with privacy setting just enable developer mode it.

Unity Vuforia asking for a useless permission access

I am currently making an Android application with Unity 2017.3.0f3 and Vuforia 7.0.36.
At startup, the application asks for
camera permission (that's ok and logic)
"Pictures, file and media on this device" (I don't understand this one !)
After further investigations, I discovered that during the creation of the Android Manifest file, Vuforia (VuforiaWrapper) was adding:
READ_EXTERNAL_STORAGE
WRITE_EXTERNAL_STORAGE
That is why the application is asking for the second permission I guess.
Hence, why is Vuforia adding this aggresive "pictures, files and media" access ?
How to remove that ?
You can remove them by editing vuforia manifest file. If permission still persist, you can export the project to android studio and remove permissions from there.

Building a Unity game for iOS with fastlane fails with missing USYM_UPLOAD_AUTH_TOKEN

I'm building my Unity game for iOS using fastlane, but ever since I enabled Unity's Cloud Diagnostics my iOS build has been failing with the message Please provide an auth token with USYM_UPLOAD_AUTH_TOKEN environment variable
This error message has caused fastlane to fail at ARCHIVE FAILED when building for the app store.
Try the following to get your builds passing:
If you are building the Unity project from commandline with -batchmode, be sure to pass in -username and -password to Unity as well. [source]
Ensure the user you are using to log in to Unity has access to the project in Unity's developer dashboard
If you are using an older version of Unity be sure to upgrade, there was a known bug related to this
If none of these work, try setting the environment variable USYM_UPLOAD_AUTH_TOKEN to an arbitrary value. This will make uploading the symbol files to Unity's servers fail, but should cause your build to pass. [source]
You can also just disable Unity Cloud Diagnostics again to get it working immediately.
This issue occurs because enabling Unity's Cloud Diagnostics tell the Xcode Project to upload the symbol files to Unity's servers as part of building the game. That way you they have symbol files to help you process game crashes.
A bit of how this all works: You must log in to Unity so it can get a token to use for uploading the game's symbol files. Then, Unity sets the values USYM_UPLOAD_URL_SOURCE and USYM_UPLOAD_AUTH_TOKEN inside the generated Unity-iPhone.xcodeproj/project.pbxproj. During the xcode build there are two tools, usymtool and process_symbols.sh which use these values to send the symbols to Unity. You can find usymtool's logs at ~/Library/Logs/Unity/symbol_upload.log.
Same probrem, I fixed it for set disabled crash reporting in UnityConnectSettings.asset (Not a fundamental solution)
CrashReportingSettings:
m_EventUrl: https://perf-events.cloud.unity3d.com
- m_Enabled: 1
+ m_Enabled: 0

The app could not be located

i integrated crashlytics into my unity game, everything worked fine, but then i had to change my package name and my working mail, since then whenever i open the dashboard it gives me an alert "Sorry the app could not be located".
I reinstalled the crashlytics sdk in unity, used new login in prepare fabric tab, but the issue is still there, although the crashlytics seems to be working.
Thanks. Usually this means we aren't detecting the build and run event. Please make sure you are building and running in the relevant IDE. Also, clean your app and dependencies in the native IDE to make sure the bundle ID is updated in all locartions. If you still run into issues, you will need to contact support as your app may be in a weird state in our system.

Integrating GPGS and AdMob or Vungle

Using Unity 5.2.3.
Using Android SDK Rev. 23.1.1
Using Google Play Game Services Package 0.9.31a (Services Version 8.4.0) for unity.
Using AdMob 3.0.1
Using Vungle (can't link, stackoverflow not allowing more than 2 links)
Note: I am using AdMob and Vungle separately with Play game services.
I have integrated Play game services with my app and that's work fine but whenever I try to include any other packages like AdMob or Vungle following happens.
AdMob: I have included the package, whenever Compile or Reopen the project play-services-basement-8.4.0 get deleted, Play Games Package has Resolve Client Jars and I am 100% sure that to blame.
Vungle: I configured Vungle Package as described in their documentation but again whenever I compile or reopen the Project several of Vungle files along with Vungle's main file Assets/Plugins/Android/libs/"android-support-v4.jar" get deleted. Again maybe Resolve Client Jars to blame.
In both cases above, I have manually copied the missing files and include them while Unity was closed but those were gone as soon as project opens.
I have issued a bug report with Unity but they said they can't help with 3rd party and they don't have issue on Unity's end.
Please Help and let me know any additional information, ill be happy to assist you.
Regards,
Since PlayServicesResolver just find dependency by rules and copy "NEWEST" to project folder and Google Play Games already have dependency on support-library-v4 23.1.+. , we can not resolve this within Unity Plugin.
I would recommend:
As work around, you can navigate to Assets>Google Play Services>Settings>uncheck-"enable background resolution"
and manually copy support library from
$sdk/extras/android/m2repository/com/android/support/support-v4/21.0.3/support-v4-21.0.3.aar
to
Assets/Plugins/Android, and run Assets>Google Play Services>Resolve Client Jars and keep 21.0.3"
This will leave "older version" of "android-support-v4.jar", but Google Play Games might not work with this version of "android-support-v4.jar".
Can you please try this?
Thanks!