Google Ads Deferred Deep Link plugin for Flutter
- Read the origin docs of Google Ads Deferred Deep Link
- If possible, contact your business partner of Advertisement from both your orgnization and Google Ads.
In your flutter project add the dependency:
dependencies:
...
firebase_core:
firebase_analytics:
google_ads_deferred_deep_link:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Modify your application manifest by adding the following metadata tag to your application tag.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.myawesome.app">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name=".MainActivity">
<!-- Value to be added to enable deferred deep links -->
<meta-data android:name="google_analytics_deferred_deep_link_enabled" android:value="true"/>
<activity
android:name=".MainActivity" >
</activity>
</application>
</manifest>
import google_ads_deferred_deep_link.dart
import package:google_ads_deferred_deep_link/google_ads_deferred_deep_link.dart
GoogleAdsDeferredDeepLink _gaddl = GoogleAdsDeferredDeepLink();
_gaddl.deferredDeepLinkStream.listen((event) {
print('Got google ads deferred deep link: ${event?.deepLink}');
}
_gaddl.startFetch();