-
Notifications
You must be signed in to change notification settings - Fork 0
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
add needed permission to the docs for android #2
Comments
May I ask what's it's use? Any link for details on it? And do you mean it should be added in addition to the user's admob app ID? |
yes. the permission should be added in addition to the users admob id. maybe... the ads were not loading on my device reliably everyday. i connected to computer to read logcat and i kept getting this warning.
heres the stackoverflow where i found the answer that i needed that permission. after adding the permission yesterday the ads started working again. But... that may not be the issue why ads were not loading sometimes. upon checking the app on my phone this morning the ads were not working again even with that permission. this time i went to phone settings and searched for "ads" and reset my advertizing id for my device. after that the ads started working again. so idk whats going on. also, idk how things work behind the scenes with flet but if it uses googles advertising id api it then requires the permission in the manifest |
Could you send sample code about flet ads.I cant use ads in flet |
theres more info here. admob webiste https://admob.google.com/home/ the samples in these docs work. just need to make sure you have your ids for the app and ads. and dont forget when you build the flet app to add
to your build command. also from my testing, the ads will not work on degoogle devices. if you're on discord i have messages on there showing how i got around the error from that and i just dont show the ads on degoogled devices |
Thanks for your comment but i tried codes the codes did not work .Can you share sample zip i have id .Sory for my english |
if you clone this repo theres an example file. navigate to example/ads_example/ there should be a pyproject.toml file there. edit that to add your admob app id to the bottom of that file.
there should also be "src" folder there too. the main app is inside that folder. from the same folder the toml file is in, in the cli run this command
that will build the app and install it to your device or emulator. i have just done all these steps and confirmed it works in the android emulator |
Thanks a lot.My computer does not support Android Studio, so I can translate it to APK thanks to workflow. Is what you said useful here? |
could you please add this to the docs to let others know they need to include this permission in the pyproject.toml file
or add this to the build aab command
i have yet to figure out how to test for ios to know whats needed for that.
The text was updated successfully, but these errors were encountered: