Play Install Referrer API - Flutter - FEATURE_NOT_SUPPORTED

Viewed 25

Package Url: https://pub.dev/packages/android_play_install_referrer

Environment Info:

Flutter - 3.0.5
Android Play Install Referrer Package Version - 0.2.1
PC Version - Windows 10
Tested on Standard Emulator - Android Version 11
Tested on a real device also - Samsung Galaxy M31 - Android 12

When running it the last time the library returned a response something like:

ReferrerDetails referrerDetails = await AndroidPlayInstallReferrer.installReferrer;
referrerDetailsString = referrerDetails.toString();
print(referrerDetailsString); // outputs - utm_source=organic&utm_medium=play_store

But for some reason it does't work now. Now it throws this error:

[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: PlatformException(FEATURE_NOT_SUPPORTED, API not available on the current Play Store app., null, null)

Note - It was working fine a few days before

0 Answers
Related