Skip to content

Commit e80f94e

Browse files
committed
Updated README.md
• Added details on how to deal with the 'multiple library' error for Android
1 parent 7eccb27 commit e80f94e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,9 @@ compile(project(':react-native-maps')){
787787

788788
If you have detached from Expo or CRNA, you might need to change the versions of Google Play Services that this library is using to make it work nicely with ExpoKit (as of SDK23). See [this issue](https://github.com/geektimecoil/react-native-onesignal/issues/301#issuecomment-327346705).
789789

790+
### Issue 6 - More than One Library with GMS License Package Name
791+
792+
790793
### Manually updating iOS OneSignalNativeSDK
791794
When you install `react-native-onesignal` it will automaticly include a specific version of the OneSignal iOS native SDK that is known to work with it. Only follow the instructions below if there is a native OneSignal SDK fix you need that isn't included already in the latest `react-native-onesignal` update.
792795

@@ -798,9 +801,22 @@ When you install `react-native-onesignal` it will automaticly include a specific
798801
6. Drop and drag this new `OneSignalNativeSDK` folder under the `RCTOneSignal.xcodeproj` in Xccode.
799802
7. Select "Create groups" and check RCTOneSignal and press Finish.
800803

804+
Please see the `examples/RNOneSignal/redux-index.js` file for example code and comments. Note that it will not compile, but instead serves as a template for how to handle Redux integration in general, and specifically including the edge case for intercepting the `onOpened` event when a User taps a push notification and prompts the app to open from a previously unopened state.
805+
806+
801807
### Issue 6 - Make `react-native-onesignal` work with Redux
808+
If you see this error:
802809

803-
Please see the `examples/RNOneSignal/redux-index.js` file for example code and comments. Note that it will not compile, but instead serves as a template for how to handle Redux integration in general, and specifically including the edge case for intercepting the `onOpened` event when a User taps a push notification and prompts the app to open from a previously unopened state.
810+
`Error: more than one library with package name 'com.google.android.gms.license'`
811+
812+
You can resolve it by adding this code to the top of your app's `build.gradle` file:
813+
814+
```
815+
plugins {
816+
id 'com.onesignal.androidsdk.onesignal-gradle-plugin' version '0.8.1'
817+
}
818+
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
819+
```
804820

805821
## CREDITS
806822
Thanks for all the awesome fellows that contributed to this repository!

0 commit comments

Comments
 (0)