Code Monkey home page Code Monkey logo

Comments (13)

bensonokiora avatar bensonokiora commented on May 30, 2024 1

The last ussdDialog is dismissed

from voipussd.

romellfudi avatar romellfudi commented on May 30, 2024
  • Is that message the final response or are you you waiting for more incoming windows? .

In my humble view, the api detect an ending window, and stop the service before closing it.

Does the splash-dialog keep showing?

from voipussd.

bensonokiora avatar bensonokiora commented on May 30, 2024

That's the final response. The splash-dialog is dismissed immediately after. But the final response is shows on top of the splash-dialog before being dismissed

from voipussd.

romellfudi avatar romellfudi commented on May 30, 2024

which part of your code it's stopped, over method? ; Otherwise you could call cancel method

from voipussd.

bensonokiora avatar bensonokiora commented on May 30, 2024

I have tried the cancel method in over method. Still not working

ussdApi.callUSSDOverlayInvoke(phoneNumber, map, new USSDController.CallbackInvoke() {
                        @Override
                        public void responseInvoke(String message) {
                            Log.d("APP", message);
                            binding.result.append("\n-\n" + message);
                            // first option list - select option 1
                            ussdApi.send("1", new USSDController.CallbackMessage() {
                                @Override
                                public void responseMessage(String message) {
                                    Log.d("APP", message);
                                    binding.result.append("\n-\n" + message);

                                    ussdApi.cancel();
                                    getActivity().stopService(svc);
                                }
                            });
                            ussdApi.cancel();
                        }

                        @Override
                        public void over(String message) {
                            Log.d("APP", message);
                            binding.result.append("\n-\n" + message);
                            ussdApi.cancel();

                            getActivity().stopService(svc);
                            Log.d("APP", "STOP OVERLAY DIALOG");
                        }
                    });

from voipussd.

romellfudi avatar romellfudi commented on May 30, 2024

Drop ussdApi.cancel() line, why do you put in that line?

Delete every canceling statement.

from voipussd.

bensonokiora avatar bensonokiora commented on May 30, 2024

I have deleted them, still no changes. I only added them to try to solve the problem

ussdApi.callUSSDOverlayInvoke(phoneNumber, map, new USSDController.CallbackInvoke() {
                        @Override
                        public void responseInvoke(String message) {
                            Log.d("APP", message);
                            binding.result.append("\n-\n" + message);
                            // first option list - select option 1
                            ussdApi.send("1", new USSDController.CallbackMessage() {
                                @Override
                                public void responseMessage(String message) {
                                    Log.d("APP", message);
                                    binding.result.append("\n-\n" + message);

                                   
                                   
                                }
                            });
                            
                        }

                        @Override
                        public void over(String message) {
                            Log.d("APP", message);
                            binding.result.append("\n-\n" + message);
                            

                            getActivity().stopService(svc);
                            Log.d("APP", "STOP OVERLAY DIALOG");
                        }
                    });

from voipussd.

romellfudi avatar romellfudi commented on May 30, 2024

Put a delay before dismiss the splash

from voipussd.

bensonokiora avatar bensonokiora commented on May 30, 2024

Is this what you mean? added a delay on over method. still no changes

ussdApi.callUSSDOverlayInvoke(phoneNumber, map, new USSDController.CallbackInvoke() {
                        @Override
                        public void responseInvoke(String message) {
                            Log.d("APP", message);
                            binding.result.append("\n-\n" + message);
                            // first option list - select option 1
                            ussdApi.send("1", new USSDController.CallbackMessage() {
                                @Override
                                public void responseMessage(String message) {
                                    Log.d("APP", message);
                                    binding.result.append("\n-\n" + message);

                                   
                                   
                                }
                            });
                            
                        }

                        @Override
                        public void over(String message) {
                            Log.d("APP", message);
                            binding.result.append("\n-\n" + message);
                            

                         final Handler handler = new Handler();
                            handler.postDelayed(new Runnable() {
                                @Override
                                public void run() {
                                    getActivity().stopService(svc);
                                    Log.d("APP", "STOP OVERLAY DIALOG");
                                }
                            }, 3000);

                        }
                    });

from voipussd.

bensonokiora avatar bensonokiora commented on May 30, 2024

Is there a way to set the Splash Screen WindowManager.LayoutParams at topmost of any dialog prompted by the USSD response?

from voipussd.

romellfudi avatar romellfudi commented on May 30, 2024

It's been set. Could you say me whether the last ussdDialog has never dismissed?

from voipussd.

bensonokiora avatar bensonokiora commented on May 30, 2024

The problem is it still pops up in-front of the Splash screen before being dismissed by the over method

from voipussd.

romellfudi avatar romellfudi commented on May 30, 2024
  • That depends on Android SO.
  • The last dialog might have had overlayShowing permissions
  • You should communicate with Google developer teams immediately on the grounds that they know why the last dialog has overlayPermission too; Besides, ask to them whether you could change the attributes of that kind of dialogs

When they reply to you please re-open this issue.
please keep me updated

from voipussd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.