push feature stable
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
tools:node="remove" />
|
||||
|
||||
<receiver
|
||||
android:name="eu.weblibre.flutter_mozilla_components.receivers.UnifiedPushReceiver"
|
||||
android:name="eu.weblibre.flutter_mozilla_components.push.UnifiedPushReceiver"
|
||||
android:enabled="true"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
@@ -83,6 +83,7 @@
|
||||
<action android:name="org.unifiedpush.android.connector.UNREGISTERED" />
|
||||
<action android:name="org.unifiedpush.android.connector.NEW_ENDPOINT" />
|
||||
<action android:name="org.unifiedpush.android.connector.REGISTRATION_FAILED" />
|
||||
<action android:name="org.unifiedpush.android.connector.TEMP_UNAVAILABLE" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ import android.content.SharedPreferences
|
||||
import eu.weblibre.flutter_mozilla_components.ActiveProfile
|
||||
import eu.weblibre.flutter_mozilla_components.MegazordSetup
|
||||
import eu.weblibre.flutter_mozilla_components.feature.SandboxCaptureFeature
|
||||
import eu.weblibre.flutter_mozilla_components.push.PushMessageScheduler
|
||||
|
||||
class MyApplication : Application() {
|
||||
override fun onCreate() {
|
||||
@@ -33,7 +34,7 @@ class MyApplication : Application() {
|
||||
|
||||
// Resolve active profile EARLY so cold-start WorkManager workers
|
||||
// get profile-prefixed SharedPreferences
|
||||
ActiveProfile.resolveFromDisk(this)
|
||||
ActiveProfile.resolveFromDisk(this)?.let(PushMessageScheduler::recoverLater)
|
||||
|
||||
// Rehydrate the sandbox capture registry from the on-disk JSON mirror
|
||||
// before Gecko has a chance to start restoring tabs. Each entry gets
|
||||
|
||||
Reference in New Issue
Block a user