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

Using the plugin exclusively on iOS without modifying AndroidManifest #1099

Closed
br-programmer opened this issue May 20, 2024 · 2 comments
Closed
Labels
platform-android Android applications specifically

Comments

@br-programmer
Copy link

Hi,

I would like to know if it's possible to use the Google Ads plugin for Flutter exclusively on the iOS platform without having to modify the AndroidManifest.xml file for the Android project. Currently, the plugin requires changes in both manifests. Specifically, these are the modifications the plugin asks for on Android:

  1. Adding permissions:
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
  2. Including the AdMob application ID in the AndroidManifest.xml:
    <meta-data
        android:name="com.google.android.gms.ads.APPLICATION_ID"
        android:value="YOUR_ADMOB_APP_ID"/>

My goal is to avoid these changes and still prevent the Android app from breaking or blocking. Is there any configuration or workaround that allows this?

Thank you for your assistance.


@malandr2
Copy link
Collaborator

Hi @br-programmer it is not possible to run an Android project with the google_mobile_ads flutter plugin installed and not include the necessary installation materials for Android. Theoretically you would have to integrate the iOS Google Mobile Ads SDK and not the Flutter plugin to achieve this

@malandr2 malandr2 added the platform-android Android applications specifically label May 28, 2024
@malandr2 malandr2 closed this as completed Jun 3, 2024
@Phlphat746
Copy link

คุณต้องใช้ให้ถูกต้องสิ่ครับ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-android Android applications specifically
Projects
None yet
Development

No branches or pull requests

3 participants