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

Wrong validation of InMobi configuration #238

Open
kmityakov opened this issue Apr 9, 2020 · 2 comments
Open

Wrong validation of InMobi configuration #238

kmityakov opened this issue Apr 9, 2020 · 2 comments

Comments

@kmityakov
Copy link

kmityakov commented Apr 9, 2020

Looks like there's an issue with InMobi configuration check.
Did everything according to the integration guide https://developers.google.com/admob/android/mediation/inmobi, but the MediationTestSuite shows error and ads aren't showing:
image

However, if I add this to my manifest, it starts working:

<activity
            android:name="com.inmobi.rendering.InMobiAdActivity"
            android:configChanges="keyboardHidden|orientation|keyboard|smallestScreenSize|screenSize"
            android:hardwareAccelerated="true" />

<receiver
            android:name="com.inmobi.commons.core.utilities.uid.ImIdShareBroadCastReceiver"
            android:enabled="true"
            android:exported="true"
            tools:ignore="ExportedReceiver">
            <intent-filter>
                <action android:name="com.inmobi.share.id" />
            </intent-filter>
        </receiver>

image

I assume this activity and receiver were needed for some old InMobi version. But now the receiver isn't needed and activity (with a different package name) is injected from inmobi_ads.aar manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.inmobi.ads"
    android:versionCode="1"
    android:versionName="9.0.2" >

    <uses-sdk
        android:minSdkVersion="15"
        android:targetSdkVersion="29" />

    <!-- Required Permissions -->
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <application>
        <activity
            android:name="com.inmobi.ads.rendering.InMobiAdActivity"
            android:configChanges="keyboardHidden|orientation|keyboard|smallestScreenSize|screenSize|screenLayout|locale|fontScale|uiMode"
            android:hardwareAccelerated="true"
            android:theme="@android:style/Theme.NoTitleBar"
            tools:ignore="UnusedAttribute" />
    </application>

</manifest>
@stowy
Copy link
Contributor

stowy commented Apr 13, 2020

Can you please confirm if you are using version 1.3.0 of the Mediation Test Suite as per the latest version in the docs? I don't think this error will occur in version 1.3.0.

@kmityakov
Copy link
Author

@stowy I use 1.2.2 cause 1.3.0 is crashing. Will check with the next release then. Thanks 👌

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