Open leonx99x opened 2 years ago
First run the Mediator on Ngrok and paste the Ngrok Address into Mobile's App.xml.cs. Try to create a wallet. If it's returning an error message, kindly paste it here.
@x0axz Thank you for your kind reply. What I did: 1- It was not recognizing UseAriesFramework at startup at mediator so I installed Aries.AspNetCore package which 1.6.4 not worked so installed 1.6.2. 2.After I run with ngrok as you said I used same link at mobile agent and build and run.
I added debug message at RegisterViewModel like this:
await _poolConfigurator.ConfigurePoolsAsync(); Console.WriteLine("Pool Configured"); await _provisioningService.ProvisionAsync(); Console.WriteLine("Provision established");
It says "Poll Configured" but does not pass provision even I clicked it. It stays at creating wallet screen and no sign what is happening since I cannot see _provisioningService.ProvisionAsync() with debug it is hidden. Threads try to create provision and fail. It is about some function inside ProvisionAsync().
@leonx99x are you able to see all the logs. please check in your IDE if you can see the logs created by the libraries vs your code.
This could be an IO problem too. What OS are you targetting?
@horationunez I run it emulator android API 29 and real device android API 28.
Pool Configured // I made this debug message [0:] System.Net.Http.HttpClient.Default.LogicalHandler: Information: Start processing HTTP request GET https://83b4-85-96-54-170.ngrok.io/.well-known/agent-configuration [0:] System.Net.Http.HttpClient.Default.ClientHandler: Information: Sending HTTP request GET https://83b4-85-96-54-170.ngrok.io/.well-known/agent-configuration
I checked agent configs for same link as this tried all things nothing changed.
Could you review this link and see if some of the values in your manifest are similar to what is recommended: https://github.com/hyperledger/aries-mobile-agent-xamarin/issues/52
It was like below and I removed "tools:node="remove"" parts.
<application android:label="AriesMax" android:allowBackup="false" android:fullBackupOnly="false"></application>
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" tools:node="remove" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" tools:node="remove" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" tools:node="remove" />
<uses-permission android:name="android.permission.CAMERA" />
After that I changed Android MainActivity.cs like this:
readonly string[] _permissionsRequired = { Manifest.Permission.Camera, Manifest.Permission.ReadExternalStorage, Manifest.Permission.WriteExternalStorage };
It now asks permission for storage too. But still is stacked at creating wallet screen.
Before I tried Provision with options that I created and made a new button to try but stacked same. await _provisioningService.ProvisionAsync(); function is like blackbox I saw it at aries-framework-dotnet but breakpoint does not show details. Only awaits for not coming response.
hey did you solve this problem? as I am currently facing the same issue
hey did you solve this problem? as I am currently facing the same issue @aangCrypto well I returned react native app. I had no time to solve the issue but I can check if I have time.
Hi, when I try to create wallet it is stacked and I debugged it seems it is awaiting provision but failing. I use ngrok and run mediator.