jeandecampredon / react-native-referrer Goto Github PK
View Code? Open in Web Editor NEWreact native module to access referrer from JS
License: MIT License
react native module to access referrer from JS
License: MIT License
i got this error
[!] The RNSFAuthenticationSession
pod failed to validate due to 1 error:
- ERROR | attributes: Missing required attribute homepage
.
- WARN | source: The version should be included in the Git tag.
- WARN | description: The description is equal to the summary.
please add homepage url at RNSFAuthenticationSession.podspec
version: 0.1.1
react-native: 0.61.2
Hey,
I don't have a lot of background in react or android development, anyway need to get this done.
I followed the steps properly, but no luck testing it.
Suppose my package name is com.hassan.ashraf, and then manually trying to raise Intent is not working.
adb shell
am broadcast -a com.android.vending.INSTALL_REFERRER -n com.hassan.ashraf/com.jdc.reactlibrary.ReferrerReceiver --es "referrer" "utm_medium%hassanmedium%26utm_campaign%3Dhassanashraf"
and handling the above with
....
RNReferrer.getReferrer().then(referrer=> {
console.log("referee is:- ", referrer);
});
doesn't works.
If this is not the correct way to test it, can you add some test steps in readme so that without going to play store it can be tested ?
As the library is with react-native, Does it supports iOS as well? or only Android support is available?
Hey! I have added the Usage code that you have put in ReadME but I am getting the following error:
06-24 19:22:15.407 15144 15248 W ReactNativeJS: Possible Unhandled Promise Rejection (id: 0): 06-24 19:22:15.407 15144 15248 W ReactNativeJS: TypeError: null is not an object (evaluating '_reactNativeReferrer.default.getReferrer')
Any idea what would be causing this?
RN code:
const referer = await RNReferrer.getReferrer();
Hi
I am using the package in my application to get the user referrer information from Play store but when i am installing the application from Play store url with parameters utm_source and utm_medium its coming as not set, Can you please let me know what exactly i am doing wrong here.
Thanks
Madhv
Just a heads up. It's easy enough to follow the manual instructions.
Hello, thanks for writing this! Definitely the simplest solution out there.
I'm having some trouble getting this to work in a stable manner. It works most of the time, but in one case it doesn't work.
If I install my app from the Google Play Store, and hit "Open" immediately when it appears, my app reports no referrer from getReferrer()
. That is, the promise is resolved with undefined
. But if I install it and wait a moment after "Open" appears before hitting it and opening the app, everything works fine. I'm sure this is a problem with where/when in my app getReferrer()
is called.
So when in a react-native app can I be sure that getReferrer()
will be work every time?
Thanks!
Hello,
Is there some example of the correct return of RNReferrer.getReferrer()
I'm getting the next object and can't extract any information from it.
{"_40": 0, "_55": null, "_65": 0, "_72": null, "catch": null, "done": null, "finally": null, "then": null}
Thanks
Thanks for this library!
RN 0.56 now uses build tools v26 and this library uses v23. Can you update it so that it will compile properly on 0.56+?
Here is an example of a good way to do this: https://github.com/react-native-community/react-native-svg/blob/master/android/build.gradle
Describe the Feature
Compatibility with React Native v0.60. Here is some breaking changes: https://facebook.github.io/react-native/blog/2019/07/03/version-60
Possible Implementations
Adapt the code, here a starting point https://react-native-community.github.io/upgrade-helper/
Related Issues
The current version of react-native-referrer is not compatible with React Native v0.60
Hi, I have received an email about the install referrer and wanted to share it with you. As I understand it will deprecate soon and they recommend a new package.
Hello Google Play Developer,
We recently announced that we’ll be deprecating the install_referrer intent broadcast mechanism. Because one or more of your apps use this intent to track referrals, we wanted to ensure you make the switch before March 1, 2020. After this date, new versions of the Play Store app will no longer broadcast the install_referrer intent after app installs.
Action required
Migrate to the Play Install Referrer API to track your app installs for the following apps and/or games.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.