MXCzkEVM / datadash-wallet

Other
0 stars 1 forks source link

mining v2 - iOS auto claim issue #235

Open reasje opened 3 days ago

reasje commented 3 days ago

This error was caused by the injection in IOS and the injection doesn't occur properly, And the error JavaScript execution returned a result of an unsupported type is thrown on JS side which means the injections doesn't take place.

reasje commented 3 days ago

Dev log: However surprisingly the injection occured and AXS object was available, However the error seems to interupt the axs JS channel detection by the web app.

reasje commented 3 days ago

Dev log : I was able to find the error in Stackoverflow, However two injection that the other one was related to webview copy handler injection also had this problem and added to confusion to fix the bug. Finally the bug was fixed by wrapping the JS code to function call and the error in IOS was about evaluating a statement that has Nil return type (Which is OK too and the strange behavior from IOS).

reasje commented 3 days ago

@SanghamitraBhowmick1993 I would appriciate If you can test both Android and IOS because the changes reflected both, The changes are about the JS channel meaning testing miner dapp auto claim functionality including passing miner can confirm the fix.

reasje commented 3 days ago

@SanghamitraBhowmick1993 Plz note that I have pushed all the changes so far, I have commented the interfaces for the user not to access new features.

reasje commented 2 days ago

Dev log: IOS 17.5.1 Not working IOS 17.4.0 Working IOS 16.2.0 Not working

reasje commented 1 day ago

Dev log: IOS 17 is working

reasje commented 1 day ago

The injection happens and the object is visible right after injection but the detection seems to be problematic.