lschmierer / android_play_install_referrer

A Flutter plugin for the Android Play Install Referrer API.
BSD 2-Clause "Simplified" License
21 stars 21 forks source link

Play referrer etc #4

Closed bilaloz closed 4 years ago

bilaloz commented 4 years ago

I tried https://play.google.com/store/apps/details?id=app_id&referrer=xyz with install. but I saw https://drive.google.com/file/d/1_-WU7JvNFMIQnrI7IksbDF0EuCvsVKn3/view?usp=sharing

Is there a place I need to change in native code ?

ReferrerDetails referrerDetails = await AndroidPlayInstallReferrer.installReferrer;

print(referrerDetails.installReferrer);

lschmierer commented 4 years ago

Did you install your app via Play Store?

The plug-in only works when apps are installed from the play store. Not with debug builds from your computer.

You can possibly use Google Play Alpha distribution to not make your app public while testing. But I'm not quite sure if that works.

Bilal ÖZ notifications@github.com schrieb am Mo. 13. Juli 2020 um 15:16:

I tried https://play.google.com/store/apps/details?id=app_id&referrer=xyz with install. but I saw https://drive.google.com/file/d/1_-WU7JvNFMIQnrI7IksbDF0EuCvsVKn3/view?usp=sharing

Is there a place I need to change in native code ?

ReferrerDetails referrerDetails = await AndroidPlayInstallReferrer.installReferrer;

print(referrerDetails.installReferrer);

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lschmierer/android_play_install_referrer/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ2IJGAB3SZEVGEHI7XGBDR3MCJXANCNFSM4OYPEYIA .

-- Lukas Schmierer

lukas.schmierer@lschmierer.de Facebook https://www.facebook.com/lukas.schmierer LinkedIn https://www.linkedin.com/in/lschmierer/

bilaloz commented 4 years ago

Yes, I installed from the play store but I don't see parameter, print referrerDetails.installReferrer) https://drive.google.com/file/d/1_-WU7JvNFMIQnrI7IksbDF0EuCvsVKn3/view?usp=sharing , I just saw the screenshot

lschmierer commented 4 years ago

I haven't used the library recently myself, but last time I tested it, it did work.

It sounds like this is rather an issue with the native Android installreferrer API or your device. Can you try using the native Android Library to reproduce the issue.

What is the exact url you used?

bilaloz commented 4 years ago

Can you look ? I got a screen record. https://photos.google.com/share/AF1QipMUy-8tBNfwrwkvKt2_OuVciapkDBn_2_xRqmscZnT8mMjxJWz9dBpjdb8Ie5FFzQ/photo/AF1QipPDS7XsyzIDiBoxeJxIw16HssrZRpr2zYhrfLpC?key=MFR2QjJXbGZ5NEMtREg3WFpFOUQ4Qzh5V080dzln @lschmierer

lschmierer commented 4 years ago

I did a little research and https://stackoverflow.com/a/49750758 suggests that the Install Referrer API does NOT work with Alpha/Beta distribution. Referrer Broadcast might work but I have not implemented it in this library, because it it deprecated as of March 1 https://android-developers.googleblog.com/2019/11/still-using-installbroadcast-switch-to.html

You can try this https://stackoverflow.com/a/58621059

bilaloz commented 4 years ago

Thanks @lschmierer but I read the comments , says the approved answer doesn't work. Can I be tested internally?

lschmierer commented 4 years ago

If my API does not return a valid referrer, it is because the Google API does not return one. There is nothing I can do.

Can I be tested internally?

As you can see in your video, my library does indeed return a string which it does receive from the the Google API. This means my library is working.

bilaloz commented 4 years ago

I could not test it in any way. Is there anything you need to write to the readme file? we would be happy if you could create a readme about how to test it. @lschmierer

lschmierer commented 4 years ago

There is no way to test it (beside doing a full release on Play Store). So there is nothing I can put in the README.

Just like you, I can only browse the internet (Google, Stackoverflow) to search if anybody has a solution.

If you have more information on how to test this, please let me know!

Btw.: this issue is a duplicate of https://github.com/lschmierer/android_play_install_referrer/issues/1

Edit: If you already have an app that is release publicly, you could add the Play Install Referrer logic to that app to verify if the Play Install Referrer API works. You could do it in such way, that existing users of that app would not notice, as they don't have access to your testing referral link.

bilaloz commented 4 years ago

I puslished public this app in Google Play. ( https://play.google.com/store/apps/details?id=com.tamindir.app ). But example https://play.google.com/store/apps/details?id=com.tamindir.app&referrer=id300 it cames as null . I did create new google play account and I did test different devices. I don't know. @lschmierer thanks.

lschmierer commented 4 years ago

I can't download the app from Germany, can you change that so I can try if it works on my device? Have you tried another device? Maybe its an issue with the particular phone you used.

bilaloz commented 4 years ago

Hello , You are installing now. Thanks @lschmierer