I want to integrate a Unity application into android studio project that opens up as an instance upon button click. I am entirely new to android studio, so please keep that in mind when you provide a solution.
My unity app is ready to deploy. Now i just want to create an app on android studio that simply has a button which upon clicking will open the unity app as an instance. If i can do this, i would be able to integrate my app into any other pre-existing android projects without making another version of my app from scratch in android studio.
Thanks in advance.
Unfortunately it is not possible to integrate an APK/bundle into an android studio project activity and Unity compile a closed source APK/bundle only so it is currently not possible.
You can broadcast one app to open with a button on another app but that will require the user to install both apps.
it might be possible on rooted phones but it will probably be pretty complex to achieve
Another elegant solution would be to use something like firebase's dynamic links - that is , your button would open a link, if the user already have the app installed on the device it would open the app (and navigate to wherever) if not, it would open your app's play store download page.
Related
I am writing you in order to ask how to approach my problem. I need to make an android application that can control a unity application in a real time. You can imagine it something like standart remote controller for TV.
I have an application in unity that works like mirror try on clothes and in that application there is a UI with possible t-shirts, pants, jackets etc which u can try on by clicking on it in unity project and what I want to do is just make an android application where I could see the the possible t-shirts, pants, jackets etc.. and I could select one by clicking on it on mobile and it will show on the body in the unity app. (so I wanna do exactly do the same what is now in the UI in unity project but I wanna do it through android app in mobile)
I was thinking of some server that will be created everytime I run unity project and my android app will connect to it and send data through the server to unity project but I was wondering if this is valid approach or do u think there is some easier/better way on how to approach this problem?
This is the first time I am making some online interaction between apps so maybe I am seeing it too simply.
Thank you for any opinion :)
I have couple questions about generating PWA App. Maybe at the first step I explain something about app for better understanding my problems with generating app for multiplatforms.
Multi Tenancy App
I can't say much more about application. This is application where users can create own account. Accounts is separated at servers, eg. app1, app2, app3 etc. Every server has his own domain, eg. app1.example.com etc. Every user can upgrade his account to premium type and define own domain, which can be go on and login to his account without using global domains (here is a problem with PWA app, multi domains). I think it is everything what you need to know, if you need more specific info, give me a feedback, I will try to help you. I need to use WebView because app need access to localStorage.
My problems
Problem is with multi domains. In manifest.json configuration is possible to define one domain, which app will be use to display application and authorize it (with assetlinks.json) to don't display URL Bar (for "Add to Home Screen" - with android app is possible to add wildcard).
I need possibility to use application with multi domains (I achieve it on android - explanation in the following part of post).
Problem is too with adding application from mobile Chrome "Add to Home Screen" and on the desktop "Install app...". After redirect to other URL, URL Bar is shown.
Next problem is to compile Windows Store app from Visual Studio (explanation in the following part of post).
I need more info about compiling app for iOS and MacOS - is this possible to compile and test it without Apple devices? I tried to use pwabuilder.com, but after download MacOS package folder is empty. Maybe virtual machine could help me with that? What you recommend too use to make that application? I tested what I found in google, but it wasn't what I expect.
Installation from Chrome browser
Is possible to change user URL without showing URL Bar? Now after autorization user and redirect him on the properly his premium address url bar is showing - i don't want users to have to go on properly domain and install app from "Add to Home Screen" - they should install it from any domain and use it like Native App.
Android
Partially solved problem with subdomains for every account. It's working properly, but maybe someone has any other authorization solution where I don't need custom subdomain for authorize app.
Windows Store
I installed Visual Studio, make new application with this documentation but I getting error
Error Project must have a reference to an application. Please add a reference under the 'Applications' node in the Solution Explorer.
Here is an issue - Maybe problem is with newest version of Visual Studio? Next question is, even if I compile the App, what with multi domain - URL Bar will be visible when user will be redirected? What if Chrome don't be installed?
iOS and MacOS
Maybe someone has good documentation how to create apps on this platform and where can I test it? What with multi domain? URL Bar will be shown? Is possible to make it invisible like an Android App eg. wildcard or other solution?
My questions
How to create PWA app for iOS and MacOS. Maybe is nice documentation for it.
How to build application for Windows Store. I made app with Microsoft documentation, but it doesn't work - problem was open on GitHub Issue, but without solution.
Is possible to use multi domains and don't show URL Bar for applications installed from mobile Chrome like a "Add to Home" or desktop Chrome "Install app...".
What if Chrome don't be installed on device? Application will be working properly? I know from android 8.1 is possible to remove chrome from android. I don't know if after remove Chrome application will be working?
Thanks everyone for help and your patience, I counting on much help from you.
I'm recently building a PWA with Vue and I'm trying to find a way of making the IOS package out of It. So far I haven't done yet but for Windows, Android & MacOs are pretty easy ... There a lot of blog tutorials for that and if you don't want to go through much of coding then the PWA Builder is the best option for you.
For your 4th question if you want to run a PWA from a browser the browser you have must support standalone desktop apps.
I wanted to try my PWA on iPhone from Chrome and couldn't because that chrome does not have the feature to pin an app to screen so I had to rely on safari only
I am searching a method to build custom app for android Auto (Which is not a media app nor messaging app)
Exactly like RoboCharge
Can someone give some directions for building such app.
N.B I have seen this question, but my app will be very simple and will not distract the driver.
Google doesn't allow to create custom apps to 3rd parties, yet.
You have to contact them and they will give you a new SDK
This question already has answers here:
Enable/Disable VR from code
(5 answers)
Closed 5 years ago.
In android GearVR, is it possible to launch an application in normal/phone mode, and then have it transition to Unity/VR when the user clicks a button to go into VR?
So far the app either launches completely in VR with "vr_only" as an option, or launches normally and goes to Oculus Home when we try "vr_both" or "vr_dual".
Is such a thing possible, or will we have to make two separate apps? Please note that using the "Virtual Reality Supported" option in Unity will not work on the Gear.
I won't say that it is impossible but would be difficult to achieve as there is not simple way to do this. Using Virtual Reality Supported option in player settings as suggested by #Programmer is not an option. You can either check it or un-check it before building the app. Changing it later through code does not work for android build.
You can build a non-VR App and write native plugin to give users an option to start VR App which may be a different app (with a different bundle identifier).
I am not good with native code so can't help you much with exact way to do this. Instead you can have a look at following links:
http://answers.unity3d.com/questions/259935/open-app-from-other-app.html
http://forum.unity3d.com/threads/android-ios-launch-from-within-a-unity-app-another-unity-app.222709/#post-1486300
Is it practical to start a Unity game from an Android app and revert back from Unity to the app?
For more information on this topic follow this forum post on oculus forum: https://forums.oculus.com/developer/discussion/26935/gearvr-app-within-android-app
There should be a button in the unity application that will launch the android app, similarly there should be a button in the android app that will let us switch back to the unity app.
Please helo me to perform this task , since im a newbie, i dont know how to do it :(
You would have to use plugins. The same principal works for iOS apps, and Windows Phone beta apps. You can communicate back and forth from within the View and View Controllers into your Unity Apps via plugins.
Here is a good start:
http://docs.unity3d.com/Documentation/Manual/PluginsForAndroid.html