Skip to content

Commit

Permalink
fix: changed initializing
Browse files Browse the repository at this point in the history
  • Loading branch information
xeewii committed Jun 10, 2024
1 parent 282fd8f commit 60b8225
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ class SampleApplication: Application() {
super.onCreate()

//Initialize
val sdk = REES46.initialize(applicationContext, SHOP_ID)
val sdk = REES46.getInstance()
REES46.initialize(applicationContext, SHOP_ID)

//Notification callback
sdk.setOnMessageListener(object : OnMessageListener {
Expand All @@ -64,7 +65,7 @@ class SampleApplication: Application() {
For On-Premise integration need use initialize with custom api domain:

```kotlin
val sdk = REES46.initialize(getApplicationContext(), SHOP_ID, API_DOMAIN)
REES46.initialize(applicationContext, SHOP_ID, API_DOMAIN)
```

Check `AndroidManifest.xml` and add `android:name=".SampleApplication"` to application item.
Expand Down

0 comments on commit 60b8225

Please sign in to comment.