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

TypeError: Cannot read property 'initializeWithAppKey' of null #112

Open
wDRxxx opened this issue Jul 29, 2023 · 2 comments
Open

TypeError: Cannot read property 'initializeWithAppKey' of null #112

wDRxxx opened this issue Jul 29, 2023 · 2 comments

Comments

@wDRxxx
Copy link

wDRxxx commented Jul 29, 2023

Hello, I followed the installation instructions and during the initialization I get an error:
TypeError: Cannot read property 'initializeWithAppKey' of null
image
Code that crashes me:
image
I have this error in just created expo project. I also tried to use 'npx expo prebuild'
I hope for help, thanks

@Dem0n13
Copy link

Dem0n13 commented Nov 19, 2023

Have this issue too. Looks like I can't initialize Appodeal from App component and show initialize it from Screen component inside App. Looks like it throws on the line com.appodeal.rnappodeal.RNAppodealModule.initializeWithAppKey (RNAppodealModule.java:63):

Appodeal.initialize(getCurrentActivity(),
                appKey,
                RNAppodealUtils.getAdTypesFormRNTypes(adTypes),
                list -> sendEventToJS("onAppodealInitialized", null)
        );

it can't retrieve activity (getCurrentActivity() returns null).

It's lack of the documentation or bug in the current version, which turns into Crash time by time in Google Play Console for my title.

@elwadi
Copy link

elwadi commented May 2, 2024

Hi @Dem0n13 ,
have you fix this error ?

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

3 participants