Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Side-app can't call if the device doesn't request first. #3

Open
DotIN13 opened this issue Dec 25, 2023 · 1 comment
Open

Side-app can't call if the device doesn't request first. #3

DotIN13 opened this issue Dec 25, 2023 · 1 comment

Comments

@DotIN13
Copy link
Contributor

DotIN13 commented Dec 25, 2023

In the map application I'm currently working on, this.call from side-app cannot be received in device-app unless this.request has been called for at least once in the device-app.

Please confirm if this is a bug.

Additionally, it seems that onInit (params) in BasePage get passed a string "undefined" by default. I believe this is not the desired behavior. A plain undefined might just work here.

Thanks in advance!

@htoooth
Copy link
Collaborator

htoooth commented Dec 28, 2023

@DotIN13

  1. The current communication model is similar to browser to server, where device-app is the browser and side-service is the server. If there is no communication link established, side-service cannot send to device-app. If you really want to do this, you can send a request from app.js onCreate. Or use the internal method, which may not be stable.
image 2. I tested and did not receive a string in the onInit method of the page module. image

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

No branches or pull requests

2 participants