Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headsup: The new SDK (js-browserless) supports React-Native #8

Open
felixspitzer opened this issue Sep 27, 2022 · 5 comments
Open

Headsup: The new SDK (js-browserless) supports React-Native #8

felixspitzer opened this issue Sep 27, 2022 · 5 comments
Labels
type/feat New feature or request

Comments

@felixspitzer
Copy link

We have been using a fork of your repo to send our events to ATInternet (now Piano Analytics) and are grateful for the help the repo has provided.

In return we would like to mention, that the new Piano Analytics JS-browserless SDK supports React Native out of the box. So the native SDKs are not the only solution for RN anymore.

Maybe the package could mention this option for developers who are looking to implement Piano Analytics into their app.

The main purpose of this request is to thank you for the repo, that we have used! ;)

@felixspitzer felixspitzer added the type/feat New feature or request label Sep 27, 2022
@riamon-v
Copy link

riamon-v commented Oct 31, 2022

Hello @felixspitzer, would you be able to provide an example of an app working with the npm package piano-analytics-js ?
I personnaly get the following errors.

Screenshot 2022-10-31 at 11 28 25

I tried putting the setConfigurations function into the index.jsof my app. Wherever I import the module I get this

@felixspitzer
Copy link
Author

@riamon-v
I will provide one by the end of the week :)

@riamon-v
Copy link

riamon-v commented Nov 1, 2022

@riamon-v I will provide one by the end of the week :)

@felixspitzer Yes it would be awesome. I installed version 6.5.0 of piano-analytics-jsas it was the first to support RN, but it doesn't seem to change anything.
Looking forward to your reply

@felixspitzer
Copy link
Author

@riamon-v

Please have a look at this. Just fill in your site ID and your collect domain and click fire away with the button. It is a very basic setup, but the events reach the Piano backend and can be viewed there.

If you have further questions, feel free to ask :D I am not associated with Piano, but we use the SDK in our projects. So I might be able to help :)

https://github.com/felixspitzer/PianoExampleRN

@riamon-v
Copy link

riamon-v commented Nov 7, 2022

Well the problem in my app is actually that the project doesn't seem to detect it is a RN project. So it imports the web part of the package.
To fix this I directly imported piano-analytics like so:
import {pianoAnalytics} from 'piano-analytics-js/dist/browserless/piano-analytics.react-native.umd';

Hope it can help some that will encounter the same problem :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feat New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants