Application.OpenUrl() alternative for Android build 2022,Open URL in Android App
Hello,
I'm trying to reward players for following my twitter/fb/youtube , I do this by sending them via my unity app on BtnClick to a link to the channels and reward them after 2minutes, so I don't actually check if they followed my socials. This is working on PC but "Application.OpenURL()" does not work on Android, I found on the forum and in the docs https://docs.unity3d.com/ScriptReference/Application.OpenURL.html that this is bc Android7.0 made using this impossible for security reasons.
I however can't find an alternative anywhere, in the docs there is a mention of using FileProvider but I can't find anywhere explained how to integrate and use this in my unity app. I only found half an explaination by someone implementing something for opening a file https://forum.unity.com/threads/application-openurl-on-unity-2017-2-android-7-not-working.502135/ but I am trying to open a link.
Can someone please help me with the current alternative for Application.Url( myUrlString ) on Android in 2022 with Unity because I searched the whole internet and am still stuck. I guess I have to use FileProvider but would like to find a complete tutorial (what to download, what codelines to add where, how to call)
Kind regards
Answer by developerJordy · Mar 14 at 04:03 PM
I am still very stuck here, is there really no alternative ? This is since 2017 so 5 years ago
Also stuck here. Would really love a clear tutorial explaining how to do this :S
Your answer
![](https://koobas.hobune.stream/wayback/20220613054105im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Mechanim animation Any State except current one 0 Answers
Generating AAB using Unity Cloud Build 0 Answers
Android Device Monitor Application Column Displays Question mark instead of package name 0 Answers
Android Manifest xml is missing! Build failed. 0 Answers
Ndk is in the correct directory, but I get an NDK not found error. 1 Answer