Skip to content
This repository has been archived by the owner on Dec 29, 2019. It is now read-only.

Unable to registerWithHost unless client activity created after host activity #25

Open
abselt opened this issue Apr 16, 2017 · 1 comment

Comments

@abselt
Copy link

abselt commented Apr 16, 2017

I have ClientApp makes discoverNetworkServices
and a HostApp makes startNetworkService and discoverNetworkServices

know if the HostApp launched #THEN the ClientApp launched
the connection is estavlished and everything works fine.

the problem is if the HostApp launched #AFTER the ClientApp the connection will never began

this is how I discoverNetworkServices in ClientApp

ActivityMain.network.discoverNetworkServices(new SalutDeviceCallback() {
                @Override
                public void call(SalutDevice device) {
                    network.registerWithHost(device, new SalutCallback() {
                        @Override
                        public void call() {
                            Toast.makeText(ActivityMain.this, "success", Toast.LENGTH_SHORT).show();
                        }
                    }, new SalutCallback() {
                        @Override
                        public void call() {
                            Toast.makeText(ActivityMain.this, "fail", Toast.LENGTH_SHORT).show();
                        }
                    });
                }
            }, true);

i thought true will make behavor work but its not
Please help me with getting connection to work if the host created after the client app

in another subject: Thank you very much for this awesome job I HOPE YOU KEEP WORKING ON IT

@Aawesh
Copy link

Aawesh commented Jun 2, 2017

I am also facing this problem. Did you find any solution to this?

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

2 participants