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
Callback function is not called at all with no error #57
Comments
Hello ther Mr Silimon,
Otherwise, you should see a message telling you the plugin isn't registered and therefore it will not invoke your callback |
Ok, Now I am getting the error you mentioned
How I reached there, I was having build errors because I used the Application.java from Homepage , so i Modified it until i got t build, but what I done is I disabled it completely after searching here, I found this issue which I guess is related So i knew the problem is in this file , the file worked for me is this : First I created the file in this location: then the code is the same on homepage with one line modified:
Now it is building and I am getting this error of the plugin is not registered, My callbackFunction is the first thing in my main.dart after importing the packages, so i don't know what i did wrong I know that all the problems i have are because Application.java file What is the correct way to install it because I can't seem to get the homepage code to work? |
Hey ther Mr Slimon. The error you are getting there is because you haven't included the Application.java file as the main activity in your android manifest.xml |
@TylerMutai
and actually I searched for how to do this correctly but I can't find something from flutter perspective to understand it.
I am very sorry , I don't have that much experience with Native android development - a lot of these concepts I searched the Internet for how to do it and that how I got to these results. |
Hey ther Mr. Silimon In your Application.java file, I see that you have not defined your package, which is why you are getting the error. I assume under your folder structure, your Application class is under
It should now work |
Also remember to include the semi colon. Sorry. i.e.:
Then in your android manifest file, replace |
Yep - it is working correctly now, My fault was that in application tag I always added Thank you very much for your help, Happy coding 🥇 |
After messing around
I got the window to show - but now any button pressed is not calling the callbackfunction
In console all what I get is this
When i click the button i get the log of invoking callback and invoking on method as shown above
But I inserted print function before the case in the call back and even this is not giving any thing
The text was updated successfully, but these errors were encountered: