Skip to content

Commit

Permalink
feat(PushPushGo): add to instance custom flags declaration for launch…
Browse files Browse the repository at this point in the history
…er activity intent
  • Loading branch information
worotyns committed Aug 29, 2024
1 parent ba7d9b9 commit a2a75b4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.pushpushgo.sample

import android.app.Application
import android.content.Intent
import com.pushpushgo.sdk.PushPushGo
import timber.log.Timber

Expand All @@ -9,6 +10,8 @@ class MainApplication : Application() {
override fun onCreate() {
super.onCreate()
Timber.plant(Timber.DebugTree())
PushPushGo.getInstance(this)
PushPushGo
.getInstance(this)
.setCustomClickIntentFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK)
}
}

0 comments on commit a2a75b4

Please sign in to comment.