Comments (8)
from quickstart-unity.
@stewartmiles No i am seeing the shortlink which was generated from the long dynamic link
This is what i am seeing "https://xxxxx.app.goo.gl/w7EYt3lsMzyVpaP32"
My long dynamic link was
from quickstart-unity.
from quickstart-unity.
I tried it and it works fine on Unity Editor. But when running on iOS i am getting this exception
Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in :0
Rethrow as WebException: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in :0
at System.Net.HttpWebRequest.GetResponse () [0x00000] in :0
at LongDynamicUrl.GetFinalRedirectedUrl (System.String url, System.Action`1 onDynamicLinkFetched) [0x00000] in :0
at Firebase.Invites.FirebaseInvites+Listener.TrySendCachedMessage () [0x00000] in :0
at Firebase.AppUtil.PollCallbacks () [0x00000] in :0
from quickstart-unity.
from quickstart-unity.
Still same issue. My method to get the long dynamic url is
public static void GetFinalRedirectedUrl(string url, Action onDynamicLinkFetched) {
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url);
webRequest.AllowAutoRedirect = false;
webRequest.Timeout = 10000;
webRequest.Method = "HEAD";
HttpWebResponse webResponse;
using (webResponse = (HttpWebResponse)webRequest.GetResponse()){
if ((int)webResponse.StatusCode >= 300 && (int)webResponse.StatusCode <= 399) {
string uriString = webResponse.Headers["Location"];
onDynamicLinkFetched(uriString);
}else {
onDynamicLinkFetched(null);
}
webResponse.Close();
}
}
Please tell me what to change make it work.
from quickstart-unity.
from quickstart-unity.
Adding this
ServicePointManager.ServerCertificateValidationCallback = MyRemoteCertificateValidationCallback;
before sending request worked
private static bool MyRemoteCertificateValidationCallback(System.Object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) {
bool isOk = true;
if (sslPolicyErrors != SslPolicyErrors.None) {
for (int i=0; i<chain.ChainStatus.Length; i++) {
if (chain.ChainStatus [i].Status != X509ChainStatusFlags.RevocationStatusUnknown) {
chain.ChainPolicy.RevocationFlag = X509RevocationFlag.EntireChain;
chain.ChainPolicy.RevocationMode = X509RevocationMode.Online;
chain.ChainPolicy.UrlRetrievalTimeout = new TimeSpan (0, 1, 0);
chain.ChainPolicy.VerificationFlags = X509VerificationFlags.AllFlags;
bool chainIsValid = chain.Build ((X509Certificate2)certificate);
if (!chainIsValid) {
isOk = false;
}
}
}
}
return isOk;
}
DO YOU THINK THERE WILL BE SOME SECURITY ISSUES.
from quickstart-unity.
Related Issues (20)
- The updated SDK seems to have solved the connection issue! Much appreciated HOT 1
- Android: Push notification messages are not received when the application is closed! HOT 3
- FirebaseMessaging.MessageReceived triggers multiple times on receiving single push notification HOT 9
- Generation of the Firebase Android Resource File Failing Again HOT 3
- Coding Rules are not there! HOT 2
- Cloud functions not working with Quickstart project HOT 2
- corrupted com.google.firebase.firebase-messaging-unity-***.aar HOT 2
- [Bug] "FirebaseMessaging.RequestPermissionAsync()" is incorrect. HOT 1
- User Property values coming in late
- Cannot upload debug symbols for Android to crashlytics HOT 1
- How to change Dependencies download destination path? HOT 1
- Unity Firebase App works in editor but not in build HOT 1
- Newbie - Guidance Needed About Firebase Projects Management (On Firebase Dashboard) HOT 1
- Crash on iPhone 6 on iOS 12 with Realtime Database HOT 2
- Targeting iOS version numbers requires upgrading to SDK version 6.24.0 or later
- When proper Firestore Unity support? HOT 2
- Unity [FirebaseCore][I-COR000003] The default Firebase app has not yet been configured. HOT 1
- messaging/testapp not working HOT 3
- Cloud Messaging / build problems HOT 5
- GetValueAsync() in Realtime Database often enters infinite wait HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickstart-unity.