Using Application.OpenUrl to open a URL in a String variable
Hi, I'm currently trying to build a simple program in Unity which gets a string from a URL, strips out the html and then passes that String variable to Application.OpenUrl to open a site I specify....
View ArticleHow can I open an URL without using Application.OpenURL?
I am calling an URL in the `Start()` function. But I don't want to open it using `Application.OpenURL()`. I don't want to open a browser window explicitly. Basically, I have a PHP file in the URL,...
View ArticleUnity "Application.OpenURL" Doesnt work.
Hi, I'm trying to use this code to open up email composer: Application.OpenURL("mailto:email@hotmail.com?subject=Email&body=Unity"); but the problem is it doesn't work. I replaced the url with...
View ArticleHow do I type in a URL without commenting out the rest of the line?
It seems like a really dumb question but it's got me stuck... As soon as I type in Application.OpenURL ("http:// everything after the // becomes a comment. My workaround was to create a string "http:/"...
View ArticleC# Android Application.OpenURL() sends email, but app hangs after
I use this Application.OpenURL("mailto:" + formEmail + "?subject=MySubject Consent&body=Mymsg"); The message sends that's great, it even returns to the app which calls Application.LoadLevel();...
View ArticleOpen Url in browser on button click
Hello I am new to unity . I am developing an app in unity 3d . Their is one functionality in which I want to open the weburl in browser through the game . On completing the browsing if user wants to go...
View ArticleApplication.OpenURL causing crashes on Android?
I am working on a very basic app demo right now, that simply opens a webpage when you press a button in the scene. However, every time OpenURL gets called, the app crashed and says it stopped...
View ArticleApplication.OpenURL not working with Data URI
If you enter the following URI in the browser: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg== it will show a...
View ArticleMailto with attachment
Application.OpenURL("mailto:?subject=test&body=test&attachment=" + filePath); it does open the mail program, but do not include the file. Am I doing something wrong? There's any way to do that...
View ArticleHow do I open a URL after a private static var hits a certain amount.
Hi Guys I've been learning basic coding and have found all the answers really helpful, Kudos. But I'm stumped on this one. I've got an onmousedown function set up so when you tap an object it destroys...
View ArticleHow to open a pdf on android device from streaming assets folder
Hi, I've been banging my head against the wall trying to figure this out. I've scoured the forums and have implemented what I think is the correct solution, but it is still not working. I'm trying open...
View ArticleApplication.OpenURL not working as a Facebook Canvas Game?
I'm testing a web build of a game as a Facebook Canvas app, but once the game is on Facebook, all external links stop working. If I click a link, the game stops showing but the browser remains on the...
View ArticleApplication.OpenURL not working
I'm trying to get my app to link to my other app using a popup. I have a UI button with the following code linked to its OnClick event: public void PopupClick(){ Application.OpenURL...
View ArticleiOS 8 application.openurl screen orientation
Hello, My app for iOS is set to run in landscape left orientation, but when I open a web page from it , using application.openurl, screen orientation changes to portrait, Is it possible to make the...
View ArticleMaking a phone call in iOS
I've been trying to make iPhones dial any kind of phone number, I'm stripping the variables down until it's just this tel://9897816789 And then I call Application.OpenURL(PhoneNumber); the string above...
View ArticleBuilding game rewrites web.html page
I wanted to make my game open url page but in separate tab instead of the same window as my web build, so I made a function that does that by using Application.ExternalCall () function in unity. Though...
View ArticleApplication.OpenURL to open google play store?
Hi, In my android game, I use this code: `Application.OpenURL ("market://details?q=pname:com.myCompany.myAppName/");` to open the playstore at my application for a rate button. However, upon executing...
View ArticleHow do I open developers account on iOS and Android?
Hello everyone. I am sure this is a very simple question, though I found it difficult to find any answers in the internet. I know that I can open my app on market using...
View ArticleClicking a button should open an app instead of a webpage
I have a button within my app which opens a webpage for now. I want it to open the android app (on an droid phone) or iOS app (on iphone) when user clicks on that button. What is a better way of doing...
View ArticleApplication.OpenURL not working in tvOS?
I want to simply open webpage (e.g. fb page, app store link, etc) in my tvOS app, and I tried `Application.OpenURL(myURL);` It only opens a blank page without anything.. . Is tvOS not support redirect...
View ArticleApplication.OpenURL crashes on PC
My Game is crashes when calling Application.OpenURL , if i remove this line game works perfectly. This works on editor , but in PC.
View ArticleApplication.OpenURL open local file with special characters on android
On android i just want to open a video. Application.OpenURL works perfectly, until the filepath have special characters in it. All this also work fine on windows, doesnt matter which filepath's i have....
View Articleopen another app from ours?
Hi, I want to open gallery from my android app. I found somewhere that you can do it using`Application.OpenURL`having gallery URI path in it. But I don't have a sun beam of idea to do it anyway. Can...
View ArticleBrowse to folder on Android via File Explorer
I'm using System.IO to read and write to a text file kept in the root of Application.persistentDataPath for my Unity Android app. Once the user is done making changes in the app, I would like them to...
View ArticleUnity C# Application.OpenURL not working with variable input
Also posted on Stack Overflow at: https://stackoverflow.com/questions/45039888/unity-c-sharp-application-openurl-not-working-with-variable-input I'm building an application in Unity and I have a button...
View ArticleOpen screenshot in file location Android
I have a button that takes a screenshot which saves into my Android device in the folder "sdcard/DCIM/Camera". I then have a separate button with the code: Application.OpenURL ("/sdcard/DCIM/Camera");...
View ArticleApplication.OpenURL not working in Android 6 & 7
Hi, I am trying to open the URL externally in Play Store using Application.OpenURL(url). But from Android 6.0 , this causes the game application crash at first launch of the app. But the same is...
View ArticleCannot open a directory using Application.OpenURL(); in android device.
I am trying to open application's data folder by using `Application.OpenURL(Application.persistentDataPath);`. It works fine in editor and opens the folder in Windows Exporer but when I try the same in...
View ArticleHow to always let the user choose a message app to send sms
so I'm using ` url = string.Format("sms:{0}?body={1}", "", Uri.EscapeDataString(fullMessage)); Application.OpenURL(url);`to let the user send a sms. It works perfectly. the user can choose who to send...
View Article