VPush class
you can provide the both VChatPushProviderBase for fcm and one signal and v chat will handle the switch between them if your app run on mobile that not support fcm then v chat will use one signal
Constructors
- VPush({required bool enableVForegroundNotification, required VLocalNotificationPushConfig vPushConfig, VChatPushProviderBase? fcmProvider, VChatPushProviderBase? oneSignalProvider})
Properties
- enableVForegroundNotification → bool
-
Enable foreground notification by v chat service if you disable it you need to configure your own foreground notification
by listen to
VChatController.I.nativeApi.streams.vOnNewNotificationStream
final - fcmProvider → VChatPushProviderBase?
-
if you want to use firebase cloud messaging as push notification provider
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- oneSignalProvider → VChatPushProviderBase?
-
if you want to use one signal as push notification provider
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- vPushConfig → VLocalNotificationPushConfig
-
Configure your local notification by VLocalNotificationPushConfig to control v chat notification
final
Methods
-
copyWith(
{bool? enableVForegroundNotification, VLocalNotificationPushConfig? vPushConfig, VChatPushProviderBase? fcmProvider, VChatPushProviderBase? oneSignalProvider}) → VPush -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited