admin管理员组文章数量:1391928
I am building a Android app in flutter. For facebook SDK integration I am using flutter_meta_sdk package. I have managed to add all the required app id and client tokens to manifest.xml using strings.xml. in the app level build.gradle I have added the implementation
implementation 'com.facebook.android:facebook-android-sdk:latest.release'
Then in the main.dart I created object of the FlutterMetaSDK class. am attaching the associate code .
final fbMeta = FlutterMetaSdk();
await fbMeta.setAutoLogAppEventsEnabled(true);
await fbMeta.logEvent(
name: "${DateTime.now().toIso8601String()} App Opened",
parameters: {
'button_id': 'the_clickme_button',
});
await fbMeta.logCompletedRegistration(registrationMethod: "Local");
final appId = await fbMeta.getApplicationId();
logger.w("AppId: $appId");
the code get compiled and the app id is getting printed. But the issue is event which I am trying to log in the fb event manager console is not triggered. Moreover in that console its showing me warning as
Update your apps to the latest Facebook SDK Some of your apps need to be updated to the latest version of the Facebook SDK in order to deliver ads to people using iOS 14.5 or later devices.
but I am building the app for android only. I don't have configuration for IOS.
Someone please help me to fix this and successfully integrating the Facebook SDK to my app so the marketing team can run the ad campaign using the app ID.
本文标签: dartFacebook SDK integration in flutter app for advertisingStack Overflow
版权声明:本文标题:dart - Facebook SDK integration in flutter app for advertising - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744698078a2620400.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论