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

Not able to integrate push notification in Native code #1

Open
dhruvpredis opened this issue Sep 2, 2024 · 1 comment
Open

Not able to integrate push notification in Native code #1

dhruvpredis opened this issue Sep 2, 2024 · 1 comment

Comments

@dhruvpredis
Copy link

dhruvpredis commented Sep 2, 2024

Getting cannot find symbol while initializing. Can you give me some reference for the react native setup

Error: /Users/devendrasathaye/Desktop/predis/free-app-code/android/app/src/main/java/com/predis/app/MainActivity.java:27: error: cannot find symbol
private final Analytics analytics = MainApplication.analytics;
^
symbol: class Analytics
location: class MainActivity
/Users/devendrasathaye/Desktop/predis/free-app-code/android/app/src/main/java/com/predis/app/MainApplication.java:91: error: cannot find symbol
analytics = Parcelvoy.initialize(this, apiKey, urlEndpoint);
^
symbol: method initialize(MainApplication,String,String)
location: class Parcelvoy
/Users/devendrasathaye/Desktop/predis/free-app-code/android/app/src/main/java/com/predis/app/MainActivity.java:27: error: analytics has private access in MainApplication
private final Analytics analytics = MainApplication.analytics;
^

@dhruvpredis dhruvpredis changed the title Not able to integrate push notification in Native ode Not able to integrate push notification in Native code Sep 2, 2024
@dhruvpredis
Copy link
Author

Imports
// parcelvoy
import com.parcelvoy.android.Config;
import com.parcelvoy.android.Parcelvoy;

Declared a private static instance in MainApplication class
private static Parcelvoy analytics;

Inside onCreate() tried to intialize:
analytics = Parcelvoy.initialize(this, apiKey, urlEndpoint);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant