distriqt / ANE-Adverts-Mediation

Mediation adapters for the Adverts ANE
https://airnativeextensions.com/extension/com.distriqt.Adverts
12 stars 0 forks source link

Facebook Audience Network crash on Android #31

Closed mwelk closed 3 years ago

mwelk commented 3 years ago

After upgrading to latest Adverts and Mediation ANE's we get a lot of following crashes in the Facebook Audience Network adapter:

backtrace:
  #00  pc 000000000058f8d4  /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+208)
  #00  pc 0000000000130a14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20)
  #00  pc 0000000000abb298  /data/app/air.com.smeet.smeetmobile-r-UwgDNHEn-TYNa4HwU4pQ==/oat/arm64/base.vdex (com.facebook.ads.internal.dynamicloading.DynamicLoaderFactory.doCallInitialize+80)
  #00  pc 0000000000593ff8  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStaticRange+768)
  #00  pc 0000000000130c94  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static_range+20)
  #00  pc 0000000000abb230  /data/app/air.com.smeet.smeetmobile-r-UwgDNHEn-TYNa4HwU4pQ==/oat/arm64/base.vdex (com.facebook.ads.internal.dynamicloading.DynamicLoaderFactory.access$200)

If I interpret the lib/facebookaudience/Version.md => | com.distriqt.admob.FacebookAudience | 6.2.009 | 6.4.0 | 6.5.0 | right then the 6.4.0 is the Android SDK version and 6.5.0 is the iOS SDK version.

Facebook fixed a bug in 6.5.0 which looks like this one.

Could you please update the Android SDK to version 6.5.0?

Envrionment settings: OS: Android AIR: 33.1.1.444 ANE-Adverts: 6.5.056 ANE-Adverts-Mediation: 6.0.0

marchbold commented 3 years ago

I'll look into getting it updated as soon as we can.

marchbold commented 3 years ago

Here's the beta for v6.5.0 of facebook audience on android.

Could you let me know how it goes?

https://www.dropbox.com/s/n7xys04bilr4p1t/com.distriqt.Adverts-Facebook.v6.3.001.zip?dl=0

(make sure you update the audience network.dex file)

everseen83 commented 3 years ago

"The beta for v6.5.0 of facebook audience on android" This works well for me :)

*Edit the App ID in the "android:authorities" part.

marchbold commented 3 years ago

Great to hear it's working.

With your note, do you mean this: https://docs.airnativeextensions.com/docs/adverts/mediation/facebookaudience#android

everseen83 commented 3 years ago

Which of the two should be used for the code in the android manifest? "Sample" or "documentation"?

marchbold commented 3 years ago

What are you referring to by "sample"? Do you mean the example application? Either, but obviously the example application has real/test values in it.

marchbold commented 3 years ago

The docs, will not have been updated to the latest release though so will potentially be missing some references currently.

everseen83 commented 3 years ago

Yes, I mean "Example" :)

<provider android:name="com.facebook.ads.AudienceNetworkContentProvider" android:authorities="APPLICATION_PACKAGE.AudienceNetworkContentProvider" android:exported="false" />



> The docs, will not have been updated to the latest release though so will potentially be missing some references currently.

Ok, I got it!
marchbold commented 3 years ago

Yeah, so use the example in this case as it's a beta, I'll get the docs updated when we release. But yes you still will need to modify the additions as per the docs.

mwelk commented 3 years ago

Hi Michael, thanks for the update. We will test it this week.