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

After Initating library i am getting this error callbackid: "-1" #16

Closed
bhagatanant21 opened this issue Jun 7, 2024 · 5 comments · Fixed by #18
Closed

After Initating library i am getting this error callbackid: "-1" #16

bhagatanant21 opened this issue Jun 7, 2024 · 5 comments · Fixed by #18

Comments

@bhagatanant21
Copy link

file-d7ADu6YbA4jkk2cV9BK3E5Z3

@bhagatanant21
Copy link
Author

Code is same as from the template as you can see plugin is getting initiated but failing to complete please help
and thank you

@tafelnl
Copy link
Member

tafelnl commented Jun 10, 2024

I'm not sure what the issue is here. It returns callbackId: "-1" because that's how the Capacitor team designed it when your plugin method doesn't return any values. Are you actually experiencing something not working? Or are you just worried about the method returning callbackId: "-1"?

Closing for now. But let me know if there's some issue. Although I would then need a reproduction so I can help you out

@tafelnl tafelnl closed this as completed Jun 10, 2024
@bhagatanant21
Copy link
Author

I am getting this error on iOS {errorMessage: "Not implemented on iOS.", data: {}, message: "Not implemented on iOS.", code: "UNIMPLEMENTED"} why so I did everything according to the documentation provided
I am confused

@tafelnl
Copy link
Member

tafelnl commented Jun 11, 2024

You're not supposed to call this method on iOS. Please refer to the readme for further explanation. Nonetheless I think I could make it so that it does not throw an error whenever you're calling this method on the unintended platforms

@tafelnl
Copy link
Member

tafelnl commented Jun 18, 2024

In the latest release this errors is not thrown anymore

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

Successfully merging a pull request may close this issue.

2 participants