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

Android - Could not invoke Pushwoosh.init #21

Closed
nicholasc opened this issue Mar 28, 2018 · 10 comments
Closed

Android - Could not invoke Pushwoosh.init #21

nicholasc opened this issue Mar 28, 2018 · 10 comments

Comments

@nicholasc
Copy link

nicholasc commented Mar 28, 2018

Hello,

I'm having an issue running my app on Android. I followed the installation instructions (install & link) and the package works perfectly on iOS. I also checked that my build.gradle was using version 26+ of the android sdk.

Using this simple init code:

Pushwoosh.init({
  pw_appid: appId,
  project_number: projectNumber
});

I get the following error on the first load after building my app:
screen shot 2018-03-28 at 10 43 39 am

If I simply refresh, the error changes to this:
screen shot 2018-03-28 at 10 44 03 am

Any help would be greatly appreciated.
Thank you!

@8of
Copy link

8of commented Apr 2, 2018

@nicholasc
Hello, Nicholas .
Can you specify Pushwoosh plugin version, please?
Where did you put Pushwoosh.init call in your app?

@nicholasc
Copy link
Author

Hi @8of,

The version I currently use is 5.5.3 and the Pushwoosh.init call is in my src/index.js file. I tried to put it in my app's main component on componentWillMount but the same error is produced.

@nicholasc
Copy link
Author

nicholasc commented Apr 3, 2018

Upgrading to 5.5.7 fixed it.

I suspect that the fix internally is linked to the android sdk version upgrades.

@8of
Copy link

8of commented Apr 3, 2018

@nicholasc isn't there a warning / error on 5.5.7 about minimal supported iOS version === 10 when you try to archive iOS version?

@bernabe9
Copy link

bernabe9 commented Apr 3, 2018

Im having the same issue on Android with the version 5.5.7

@nicholasc did you change something else to make it work?

@nicholasc
Copy link
Author

@bernabe9 no, the update was all I needed. I guess you already know, but you have to make sure you use a project number.

@8of I haven't tried to build an Archive on iOS for version 10 since then. Is there an issue there that I should be aware of?

@8of
Copy link

8of commented Apr 3, 2018

@nicholasc The issue comes into play if you need to support iOS versions prior 10.
App builds fine on simulator, but failing when you try to create app archive for AppStore.

When you try to archive project with PushWoosh plugin 5.5.6 or 5.5.7, the process is failing with error about minimum supported library version of iOS 10.

@wfhm
Copy link
Member

wfhm commented Apr 4, 2018

@8of Could you please create a new issue for this archive error with a bit more detailed description?

@bernabe9 Could not reproduce the issue with the latest plugin version. Could you please specify how and where exactly you initialize Pushwoosh lib?

@bernabe9
Copy link

bernabe9 commented Apr 4, 2018

@wfhm nvm, I don't know why react-native link didn't include the pushwoosh package in my MainApplication.java.

The last version works great! Thanks for the help

@nicholasc
Copy link
Author

@wfhm I created issue #22 for the archiving problem @8of mentionned.

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

4 participants