Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

TrasactionStateFailed #4

Open
Amein-Eskinder opened this issue Oct 18, 2021 · 25 comments
Open

TrasactionStateFailed #4

Amein-Eskinder opened this issue Oct 18, 2021 · 25 comments

Comments

@Amein-Eskinder
Copy link

TrasactionStateFailed

Hey brother thanks for this cool plugin it helps a lot, lately I was reading this package and I could not wait to test it but today I had the chance to look at it, it was very simple compared to documentation that I've red but later on after creating my api and hooking up together and onTapped my first _ussd.sendUssd I got transaction state failed but later on when I went to the useHover dashboard every thing was getting logged there perfectly I looked at my terminal there was no any strange thing that was taking place but my eyes spotted a negative sentence <unregisterNetworkCallback; CallingUid : 10197, CallingPid : 25376>, can you give me a hand on this????

image

@Amein-Eskinder
Copy link
Author

and when I kept trying again and again it is giving this random error
<Timeout triggered
E/HoverRequest(25376): setting request error: ERROR 3001: Timeout reached, please check your USSD network connection and your action configurations.
I/TransactionSequence(25376): Finished carrying out action, cleaning up.
E/HoverActivity(25376): Failure: null>

@Amein-Eskinder
Copy link
Author

Even though I cloned your master repo and still the problem persisted

@Amein-Eskinder
Copy link
Author

And now when I have changed the release version of useHover to the latest 1.7.2 it is working but it is working in debug mode where I can see the sdk dialing the Ussd and navigating through the menus is there a way that we can make it run in the background

@lucdotdev
Copy link
Owner

thanks for submitting your issue, look like some trouble through hover android sdk, does it work also in release mode with 1.7.2 hover sdk version ?

@Amein-Eskinder
Copy link
Author

when upgrading the SDKversion to 1.7.2 it works fine but only in debug mode,
and I think that is due to the deprecations and changes to the SDK

@lucdotdev
Copy link
Owner

is the latest version of the package do you use ? v 1.0.0?

@Amein-Eskinder
Copy link
Author

Yes

@Amein-Eskinder
Copy link
Author

am using these packages

get: ^4.3.8
reorderableitemsview: ^2.0.1
widget_loading: ^0.2.1
hive: ^2.0.4
hive_flutter:
animations: ^2.0.1
flutter_markdown: ^0.6.6
smart_dropdown: ^1.0.0
flutter_bounceable: ^1.0.0
hover_ussd: ^1.0.0
uuid: ^3.0.5
path_provider: ^2.0.4
advance_notification: ^1.0.5
pretty_qr_code: ^2.0.2
qr_code_scanner: ^0.5.2

@Amein-Eskinder
Copy link
Author

Btw I have observed that in one of your branchs you were using the latest SDK 1.7.2 and in the main branch you are using this version in the gradle "implementation 'com.hover:android-sdk:1.6.3'"

@lucdotdev
Copy link
Owner

okay im gonna to check that, i' m working rigth now on v2.0.0 and planning to put at pub.dev today ;
i will update the hover sdk that version and looking at you if the issue persist

@Amein-Eskinder
Copy link
Author

Great new, Waiting

@Amein-Eskinder
Copy link
Author

while using Hover's runner app they made tree approach for performing USSD calls debug mode, normal mode and offline approach for simulating with out sim card so it is good if you can made those methods available in the 2.0 version

@Amein-Eskinder
Copy link
Author

Helloo there brother @lucdotdev any progress yet?

@lucdotdev
Copy link
Owner

Currently in wip, you can check and test it at
https://github.com/lucdotdev/hover_ussd/tree/v2.0.0

hover_ussd:
    git:
      url: git@github.com:lucdotdev/hover_ussd.git
      ref: v2.0.0

@Amein-Eskinder
Copy link
Author

Hey @lucdotdev I have seen the new version and it looks great, alots of improvement.
you did a great job but is there is a way that we can customize the result page?

@lucdotdev
Copy link
Owner

yes you can do that with passing your logo and branding in HoverUssd.initialize();

@G33kfleek
Copy link

Please help me out here. I keep getting this error .

Launching lib\main.dart on TECNO BD2 in debug mode...
lib\main.dart:1
C:\Users\DENIYET2\Desktop\React Native Project\Project A-tra\Flutter\atran-flutter\hover_ussd-2.0.0\android\src\main\java\com\lucdotdev\hover_ussd\HoverUssdPlugin.java:93: warning: [unchecked] unchecked cast
(HashMap<String, String>) Objects.requireNonNull(call.argument("extras"))
^
required: HashMap<String,String>
found: Object
1 warning

@Amein-Eskinder
Copy link
Author

Even though am not good with react have you passed on the arguments for the extra's?

@G33kfleek
Copy link

signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Abort message: '../../third_party/dart/runtime/vm/object.cc: 4484: error: Unable to use class Library:'package:hover_ussd/hover_ussd.dart' Class: HoverUssd which is not loaded yet.'
package:hover_ussd/hover_ussd.dart:1
r0 00000000 r1 00005b3a r2 00000006 r3 7cc3c140
r4 7cc3c154 r5 7cc3c138 r6 00005a73 r7 0000016b
r8 7cc3c150 r9 7cc3c140 r10 7cc3c170 r11 7cc3c160
ip 00005b3a sp 7cc3c110 lr a781ecb7 pc a781ecca
backtrace:
#00 pc 0005ecca /apex/com.android.runtime/lib/bionic/libc.so (abort+166) (BuildId: 3fa995c8295bf39cdb0dfd6a7c02dad2)
#1 pc 015df5bf /data/app/com.example.flutter_application-ltZXm4PmAXIyHgZEzpEQyg==/base.apk!libflutter.so (offset 0x6d78000) (BuildId: 68f943e46d7bdceab2b8b5bdc5e55c67c89941aa)
Crash thread undumpable
Lost connection to device.

@G33kfleek
Copy link

Even though am not good with react have you passed on the arguments for the extra's?

yeah but it keeps crashing.

@Amein-Eskinder
Copy link
Author

Are you using the SDK or a plugin from pub.dev?

@G33kfleek
Copy link

G33kfleek commented Jun 14, 2022

Are you using the SDK or a plugin from pub.dev?

am using the version 2. branch (SDK which I installed locally and pointed the path to it in pubspec.yml
image

@Amein-Eskinder
Copy link
Author

Instead, have you tried fetching from Pub.dev?

@G33kfleek
Copy link

Instead, have you tried fetching from Pub.dev?

even the one from package from pubdev brings the same error

@Amein-Eskinder
Copy link
Author

Next, do this
1: Increase your target SDK and in the build Gradle.
2: Execute flutter clean.
3: If it persists it will be a problem from Hover SDK version first check these.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants