dreamsoftin / facebook_audience_network

Flutter Facebook Audience Network
https://pub.dartlang.org/packages/facebook_audience_network/
MIT License
158 stars 89 forks source link

Ad didn't get opened when clicked (Android) #36

Open rdcoder33 opened 4 years ago

rdcoder33 commented 4 years ago

In my App when a user click on the Facebook Audience Network it didn't open.

Error log:

E/Parcel  ( 1218): Reading a NULL string not supported here.
V/SensorManager( 1218): RegisterListener BMI160 Gyroscope type:4 delay:200000us by com.facebook.ads.redexgen.X.Fl
E/Parcel  ( 1218): Reading a NULL string not supported here.
V/SensorManager( 1218): unRegisterListener by com.facebook.ads.redexgen.X.Fk
E/Parcel  ( 1218): Reading a NULL string not supported here.
V/SensorManager( 1218): unRegisterListener by com.facebook.ads.redexgen.X.Fl

Code is similar to readme file:

@override
  void initState() {
    super.initState();
  FacebookAudienceNetwork.init(

    );
}

// in build
children: <Widget>[
                Container(
                    // color: Colors.grey[100],
                    child: Column(
                  children: <Widget>[
                    SizedBox(
                      height: 10,
                    ),
                    FacebookNativeAd(
                      placementId: "2327707714024530_2329615307167104",
                      adType: NativeAdType.NATIVE_AD,
                      width: double.infinity,
                      height: 300,
                      backgroundColor: Colors.black,
                      titleColor: Colors.white,
                      descriptionColor: Colors.white,
                      buttonColor: allColorsNamed['green'],
                      buttonTitleColor: Colors.white,
                      buttonBorderColor: Colors.white,
                      listener: (result, value) {
                        print("Native Ad: $result --> $value");
                      },
                    ),
alyhung commented 4 years ago

Same for me. Even with the sample app, the native ads click doesn't work. Sorry for asking, do you have any plan on fixing it?

SachinGanesh commented 4 years ago

Hi, Can you check and let me know if it works with 0.5.* version of the SDK?

alyhung commented 4 years ago

Hi Sachin,

Could you please clarify which SDK you are mentioning? Currently I'm using FAN SDK 5.7.1: 'com.facebook.android:audience-network-sdk:5.7.1'

alyhung commented 4 years ago

Hi Sachin,

I tried to upgrade FAN SDK into 5.10.1 but it still didn't work.

mithuns14 commented 4 years ago

@SachinGanesh Could you please fix this issue asap. I can't open Native ad by clicking on that

Palkesh22 commented 4 years ago

Please fix this

Omi231 commented 4 years ago

I am also facing the same problem.

shinewanna commented 3 years ago

I am also facing the same problem.