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

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

@abselt

Description

@abselt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions